ReflectionExtractor
class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface, PropertyInitializableExtractorInterface
Extracts data using the reflection API.
Properties
static | $defaultMutatorPrefixes | ||
static | $defaultAccessorPrefixes | ||
static | $defaultArrayMutatorPrefixes |
Methods
__construct(array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null, bool $enableConstructorExtraction = true)
No description
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?
bool|null
isInitializable(string $class, string $property, array $context = array())
Is the property initializable? Returns true if a constructor's parameter matches the given property name.
Details
__construct(array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null, bool $enableConstructorExtraction = true)
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?