class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface

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 = [])

Gets the list of properties available for the given class.

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

Gets types of a property.

bool|null
isReadable(string $class, string $property, array $context = [])

Is the property readable?

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

Is the property writable?

Details

at line 54
__construct(array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null, bool $enableConstructorExtraction = true)

Parameters

array $mutatorPrefixes
array $accessorPrefixes
array $arrayMutatorPrefixes
bool $enableConstructorExtraction

at line 65
string[]|null getProperties(string $class, array $context = [])

Gets the list of properties available for the given class.

Parameters

string $class
array $context

Return Value

string[]|null

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

Gets types of a property.

Parameters

string $class
string $property
array $context

Return Value

Type[]|null

at line 124
bool|null isReadable(string $class, string $property, array $context = [])

Is the property readable?

Parameters

string $class
string $property
array $context

Return Value

bool|null

at line 138
bool|null isWritable(string $class, string $property, array $context = [])

Is the property writable?

Parameters

string $class
string $property
array $context

Return Value

bool|null