PropertyInfoCacheExtractor
in package
implements
PropertyInfoExtractorInterface, PropertyInitializableExtractorInterface
Adds a PSR-6 cache layer on top of an extractor.
Tags
Table of Contents
Interfaces
- PropertyInfoExtractorInterface
- Gets info about PHP class properties.
- PropertyInitializableExtractorInterface
- Guesses if the property can be initialized through the constructor.
Properties
- $arrayCache : mixed
- $cacheItemPool : mixed
- $propertyInfoExtractor : 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
- 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
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()
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>