ReflectionExtractor

class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface

Extracts data using the reflection API.

Properties

static string[] $mutatorPrefixes
static string[] $accessorPrefixes
static string[] $arrayMutatorPrefixes

Methods

__construct()
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

__construct()

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

Type[]|null getTypes(string $class, string $property, array $context = array())

Gets types of a property.

Parameters

string $class
string $property
array $context

Return Value

Type[]|null

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

bool|null isWritable(string $class, string $property, array $context = array())

Is the property writable?

Parameters

string $class
string $property
array $context

Return Value

bool|null

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.html