PropertyInfoCacheExtractor
in package
implements
PropertyInfoExtractorInterface, PropertyInitializableExtractorInterface
Adds a PSR-6 cache layer on top of an extractor.
Tags
Interfaces, Classes, Traits and Enums
- PropertyInfoExtractorInterface
- Gets info about PHP class properties.
- PropertyInitializableExtractorInterface
- Guesses if the property can be initialized through the constructor.
Table of Contents
- $arrayCache : mixed
- $cacheItemPool : mixed
- $propertyInfoExtractor : mixed
- __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
- Retrieves the cached data if applicable or delegates to the decorated extractor.
Properties
$arrayCache
private
mixed
$arrayCache
= []
$cacheItemPool
private
mixed
$cacheItemPool
$propertyInfoExtractor
private
mixed
$propertyInfoExtractor
Methods
__construct()
public
__construct(PropertyInfoExtractorInterface $propertyInfoExtractor, CacheItemPoolInterface $cacheItemPool) : mixed
Parameters
- $propertyInfoExtractor : PropertyInfoExtractorInterface
- $cacheItemPool : CacheItemPoolInterface
Return values
mixed —getLongDescription()
{@inheritdoc}
public
getLongDescription(mixed $class, mixed $property[, array<string|int, mixed> $context = [] ]) : string|null
Parameters
- $class : mixed
- $property : mixed
- $context : array<string|int, mixed> = []
Return values
string|null —getProperties()
{@inheritdoc}
public
getProperties(mixed $class[, array<string|int, mixed> $context = [] ]) : array<string|int, mixed>|null
Parameters
- $class : mixed
- $context : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null —getShortDescription()
{@inheritdoc}
public
getShortDescription(mixed $class, mixed $property[, array<string|int, mixed> $context = [] ]) : string|null
Parameters
- $class : mixed
- $property : mixed
- $context : array<string|int, mixed> = []
Return values
string|null —getTypes()
{@inheritdoc}
public
getTypes(mixed $class, mixed $property[, array<string|int, mixed> $context = [] ]) : array<string|int, mixed>|null
Parameters
- $class : mixed
- $property : mixed
- $context : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null —isInitializable()
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|null —isReadable()
{@inheritdoc}
public
isReadable(mixed $class, mixed $property[, array<string|int, mixed> $context = [] ]) : bool|null
Parameters
- $class : mixed
- $property : mixed
- $context : array<string|int, mixed> = []
Return values
bool|null —isWritable()
{@inheritdoc}
public
isWritable(mixed $class, mixed $property[, array<string|int, mixed> $context = [] ]) : bool|null
Parameters
- $class : mixed
- $property : mixed
- $context : array<string|int, mixed> = []
Return values
bool|null —extract()
Retrieves the cached data if applicable or delegates to the decorated extractor.
private
extract(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>