PropertyInfoExtractor
in package
implements
PropertyInfoExtractorInterface, PropertyInitializableExtractorInterface
Default {@see PropertyInfoExtractorInterface} implementation.
Tags
Table of Contents
Interfaces
- PropertyInfoExtractorInterface
- Gets info about PHP class properties.
- PropertyInitializableExtractorInterface
- Guesses if the property can be initialized through the constructor.
Properties
- $accessExtractors : mixed
- $descriptionExtractors : mixed
- $initializableExtractors : mixed
- $listExtractors : mixed
- $typeExtractors : mixed
Methods
- __construct() : mixed
- getLongDescription() : string|null
- {@inheritdoc}
- getProperties() : array<string|int, mixed>|null
- {@inheritdoc}
- getShortDescription() : string|null
- {@inheritdoc}
- getTypes() : array<string|int, mixed>|null
- {@inheritdoc}
- isInitializable() : bool|null
- Is the property initializable? Returns true if a constructor's parameter matches the given property name.
- isReadable() : bool|null
- {@inheritdoc}
- isWritable() : bool|null
- {@inheritdoc}
- extract() : mixed
- Iterates over registered extractors and return the first value found.
Properties
$accessExtractors
private
mixed
$accessExtractors
$descriptionExtractors
private
mixed
$descriptionExtractors
$initializableExtractors
private
mixed
$initializableExtractors
$listExtractors
private
mixed
$listExtractors
$typeExtractors
private
mixed
$typeExtractors
Methods
__construct()
public
__construct([iterable<mixed, PropertyListExtractorInterface> $listExtractors = [] ][, iterable<mixed, PropertyTypeExtractorInterface> $typeExtractors = [] ][, iterable<mixed, PropertyDescriptionExtractorInterface> $descriptionExtractors = [] ][, iterable<mixed, PropertyAccessExtractorInterface> $accessExtractors = [] ][, iterable<mixed, PropertyInitializableExtractorInterface> $initializableExtractors = [] ]) : mixed
Parameters
- $listExtractors : iterable<mixed, PropertyListExtractorInterface> = []
- $typeExtractors : iterable<mixed, PropertyTypeExtractorInterface> = []
- $descriptionExtractors : iterable<mixed, PropertyDescriptionExtractorInterface> = []
- $accessExtractors : iterable<mixed, PropertyAccessExtractorInterface> = []
- $initializableExtractors : iterable<mixed, PropertyInitializableExtractorInterface> = []
getLongDescription()
{@inheritdoc}
public
getLongDescription(string $class, string $property[, array<string|int, mixed> $context = [] ]) : string|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
string|nullgetProperties()
{@inheritdoc}
public
getProperties(string $class[, array<string|int, mixed> $context = [] ]) : array<string|int, mixed>|null
Parameters
- $class : string
- $context : array<string|int, mixed> = []
Return values
array<string|int, mixed>|nullgetShortDescription()
{@inheritdoc}
public
getShortDescription(string $class, string $property[, array<string|int, mixed> $context = [] ]) : string|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
string|nullgetTypes()
{@inheritdoc}
public
getTypes(string $class, string $property[, array<string|int, mixed> $context = [] ]) : array<string|int, mixed>|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
array<string|int, mixed>|nullisInitializable()
Is the property initializable? Returns true if a constructor's parameter matches the given property name.
public
isInitializable(string $class, string $property[, array<string|int, mixed> $context = [] ]) : bool|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
bool|nullisReadable()
{@inheritdoc}
public
isReadable(string $class, string $property[, array<string|int, mixed> $context = [] ]) : bool|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
bool|nullisWritable()
{@inheritdoc}
public
isWritable(string $class, string $property[, array<string|int, mixed> $context = [] ]) : bool|null
Parameters
- $class : string
- $property : string
- $context : array<string|int, mixed> = []
Return values
bool|nullextract()
Iterates over registered extractors and return the first value found.
private
extract(iterable<mixed, object> $extractors, string $method, array<int, mixed> $arguments) : mixed
Parameters
- $extractors : iterable<mixed, object>
- $method : string
- $arguments : array<int, mixed>