Symfony\Component\PropertyAccess\PropertyAccessor::findAdderAndRemover
Searches for add and remove methods.
Signature
private function findAdderAndRemover(ReflectionClass
$reflClass,
array
$singulars )
Parameters
$reflClass
—
\ReflectionClass
- The reflection class for the given object
$singulars
—
array
- The singular form of the property name or null
Returns
- array|null
- An array containing the adder and remover when found, null otherwise
Errors/Exceptions
-
NoSuchPropertyException
- If the property does not exist