PropertyInfoExtractor (Component\PropertyInfo)
Symfony\Component\PropertyInfo\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 $property, array $context = array()) Gets the short description of the property. | |
string|null | getLongDescription(string $class, string $property, array $context = array()) Gets the long description of the property. | |
Type[]|null | getTypes(string $class, string $property, array $context = array()) Gets types of a property. | |
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? |
Details
public __construct(array $listExtractors = array(), array $typeExtractors = array(), array $descriptionExtractors = array(), array $accessExtractors = array())
public string[]|null getProperties(string $class, array $context = array())
Gets the list of properties available for the given class.
public string|null getShortDescription(string $class, string $property, array $context = array())
Gets the short description of the property.
public string|null getLongDescription(string $class, string $property, array $context = array())
Gets the long description of the property.
public Type[]|null getTypes(string $class, string $property, array $context = array())
Gets types of a property.
public bool|null isReadable(string $class, string $property, array $context = array())
Is the property readable?
public bool|null isWritable(string $class, string $property, array $context = array())
Is the property writable?
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/PropertyInfo/PropertyInfoExtractor.html