PropertyInfoExtractor

class PropertyInfoExtractor implements PropertyInfoExtractorInterface Default {see PropertyInfoExtractorInterface} implementation. Methods __construct(array $listExtractors = array(), array $typeExtractors = array(), array $descriptionExtractors = array(), array $accessExtractors = array()) string[]|null getProperties(string $class, array $context = array()) Gets the list of properties available for the given class. string|null getShortDescription(string $class, string $proper

PropertyInfoCacheExtractor::isReadable()

bool|null isReadable(string $class, string $property, array $context = array()) Is the property readable? Parameters string $class string $property array $context Return Value bool|null

PropertyInfoCacheExtractor::getProperties()

string[]|null getProperties(string $class, array $context = array()) Gets the list of properties available for the given class. Parameters string $class array $context Return Value string[]|null

PropertyDescriptionExtractorInterface::getShortDescription()

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

PropertyInfoCacheExtractor::getShortDescription()

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

PropertyInfoCacheExtractor

class PropertyInfoCacheExtractor implements PropertyInfoExtractorInterface Adds a PSR-6 cache layer on top of an extractor. Methods __construct(PropertyInfoExtractorInterface $propertyInfoExtractor, CacheItemPoolInterface $cacheItemPool) bool|null isReadable(string $class, string $property, array $context = array()) Is the property readable? bool|null isWritable(string $class, string $property, array $context = array()) Is the property writable? string|null getShortDescri

PropertyInfoCacheExtractor::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::setValue()

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

PropertyAccessorInterface::isWritable()

bool isWritable(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns whether a value can be written at a given property path. Whenever this method returns true, {@link setValue()} 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 value can be set Exceptions