Extractor\ReflectionExtractor (Component\PropertyInfo)
Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor
class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface
Extracts PHP informations using the reflection API.
Properties
static | $mutatorPrefixes | |
static | $accessorPrefixes | |
static | $arrayMutatorPrefixes |
Methods
string[]|null | getProperties(string $class, array $context = array()) Gets the list of properties available for the given class. | |
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 string[]|null getProperties(string $class, array $context = array())
Gets the list of properties available for the given class.
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/Extractor/ReflectionExtractor.html