PropertyDescriptionExtractorInterface::getLongDescription()

string|null getLongDescription(string $class, string $property, array $context = array()) Gets the long description of the property. Parameters string $class string $property array $context Return Value string|null

PropertyAccessorInterface::isReadable()

bool isReadable(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns whether a property path can be read from an object graph. Whenever this method returns true, {@link getValue()} is guaranteed not to throw an exception when called with the same arguments. Parameters object|array $objectOrArray The object or array to check string|PropertyPathInterface $propertyPath The property path to check Return Value bool Whether the property path can be read E

PropertyAccessorInterface::getValue()

mixed getValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns the value at the end of the property path of the object graph. Example: use Symfony\Component\PropertyAccess\PropertyAccess; $propertyAccessor = PropertyAccess::createPropertyAccessor(); echo $propertyAccessor->getValue($object, 'child.name); // equals echo $object->getChild()->getName(); This method first tries to find a public getter for each property in the path. The nam

PropertyAccessorInterface

interface PropertyAccessorInterface Writes and reads values to/from an object/array graph. Methods setValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value) Sets the value at the end of the property path of the object graph. mixed getValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns the value at the end of the property path of the object graph. bool isWritable(object|array $objectOrArray, string|Property

PropertyAccessorBuilder::isMagicCallEnabled()

bool isMagicCallEnabled() Return Value bool whether the use of "__call" by the PropertyAccessor is enabled

PropertyAccessorBuilder::disableMagicCall()

PropertyAccessorBuilder disableMagicCall() Disables the use of "__call" by the PropertyAccessor. Return Value PropertyAccessorBuilder The builder object

PropertyAccessorBuilder::enableExceptionOnInvalidIndex()

PropertyAccessorBuilder enableExceptionOnInvalidIndex() Enables exceptions when reading a non-existing index. This has no influence on writing non-existing indices with PropertyAccessorInterface::setValue() which are always created on-the-fly. Return Value PropertyAccessorBuilder The builder object

PropertyAccessorBuilder::getPropertyAccessor()

PropertyAccessorInterface getPropertyAccessor() Builds and returns a new PropertyAccessor object. Return Value PropertyAccessorInterface The built PropertyAccessor

PropertyAccessorBuilder::disableExceptionOnInvalidIndex()

PropertyAccessorBuilder disableExceptionOnInvalidIndex() Disables exceptions when reading a non-existing index. Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index. Return Value PropertyAccessorBuilder The builder object

PropertyAccessorBuilder::enableMagicCall()

PropertyAccessorBuilder enableMagicCall() Enables the use of "__call" by the PropertyAccessor. Return Value PropertyAccessorBuilder The builder object