Documentation

PropertyInfoCacheExtractor
in package
implements PropertyInfoExtractorInterface, PropertyInitializableExtractorInterface

Adds a PSR-6 cache layer on top of an extractor.

Tags
author

Kévin Dunglas dunglas@gmail.com

final

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

Methods

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|null

getProperties()

{@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>|null

getShortDescription()

{@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|null

getTypes()

{@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>|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(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

isWritable()

{@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|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>

        
On this page

Search results