Properties

$magicMethods

$magicMethods : int

Type

int

$throwExceptionOnInvalidIndex

$throwExceptionOnInvalidIndex

$throwExceptionOnInvalidPropertyPath

$throwExceptionOnInvalidPropertyPath

Methods

enableMagicMethods()

enableMagicMethods() : self

Enables the use of all magic methods by the PropertyAccessor.

Returns

self —

disableMagicMethods()

disableMagicMethods() : self

Disable the use of all magic methods by the PropertyAccessor.

Returns

self —

enableMagicCall()

enableMagicCall() : $this

Enables the use of "__call" by the PropertyAccessor.

Returns

$this —

enableMagicGet()

enableMagicGet() : self

Enables the use of "__get" by the PropertyAccessor.

Returns

self —

enableMagicSet()

enableMagicSet() : self

Enables the use of "__set" by the PropertyAccessor.

Returns

self —

disableMagicCall()

disableMagicCall() : $this

Disables the use of "__call" by the PropertyAccessor.

Returns

$this —

disableMagicGet()

disableMagicGet() : self

Disables the use of "__get" by the PropertyAccessor.

Returns

self —

disableMagicSet()

disableMagicSet() : self

Disables the use of "__set" by the PropertyAccessor.

Returns

self —

isMagicCallEnabled()

isMagicCallEnabled() : bool

Returns

bool —

whether the use of "__call" by the PropertyAccessor is enabled

isMagicGetEnabled()

isMagicGetEnabled() : bool

Returns

bool —

whether the use of "__get" by the PropertyAccessor is enabled

isMagicSetEnabled()

isMagicSetEnabled() : bool

Returns

bool —

whether the use of "__set" by the PropertyAccessor is enabled

enableExceptionOnInvalidIndex()

enableExceptionOnInvalidIndex() : $this

Enables exceptions when reading a non-existing index.

This has no influence on writing non-existing indices with PropertyAccessorInterface::setValue() which are always created on-the-fly.

Returns

$this —

disableExceptionOnInvalidIndex()

disableExceptionOnInvalidIndex() : $this

Disables exceptions when reading a non-existing index.

Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.

Returns

$this —

isExceptionOnInvalidIndexEnabled()

isExceptionOnInvalidIndexEnabled() : bool

Returns

bool —

whether an exception is thrown or null is returned when reading a non-existing index

enableExceptionOnInvalidPropertyPath()

enableExceptionOnInvalidPropertyPath() : $this

Enables exceptions when reading a non-existing property.

This has no influence on writing non-existing indices with PropertyAccessorInterface::setValue() which are always created on-the-fly.

Returns

$this —

disableExceptionOnInvalidPropertyPath()

disableExceptionOnInvalidPropertyPath() : $this

Disables exceptions when reading a non-existing index.

Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.

Returns

$this —

isExceptionOnInvalidPropertyPath()

isExceptionOnInvalidPropertyPath() : bool

Returns

bool —

whether an exception is thrown or null is returned when reading a non-existing property

setCacheItemPool()

setCacheItemPool(\Psr\Cache\CacheItemPoolInterface  $cacheItemPool = null) : \Symfony\Component\PropertyAccess\PropertyAccessorBuilder

Sets a cache system.

Parameters

\Psr\Cache\CacheItemPoolInterface $cacheItemPool

Returns

\Symfony\Component\PropertyAccess\PropertyAccessorBuilder —

The builder object

getCacheItemPool()

getCacheItemPool() : \Psr\Cache\CacheItemPoolInterface|null

Gets the used cache system.

Returns

\Psr\Cache\CacheItemPoolInterface|null —

setReadInfoExtractor()

setReadInfoExtractor(?\Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface  $readInfoExtractor) : $this

Parameters

?\Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface $readInfoExtractor

Returns

$this —

getReadInfoExtractor()

getReadInfoExtractor() : ?\Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface

Returns

?\Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface —

setWriteInfoExtractor()

setWriteInfoExtractor(?\Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface  $writeInfoExtractor) : $this

Parameters

?\Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface $writeInfoExtractor

Returns

$this —

getWriteInfoExtractor()

getWriteInfoExtractor() : ?\Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface

Returns

?\Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface —

getPropertyAccessor()

getPropertyAccessor() : \Symfony\Component\PropertyAccess\PropertyAccessorInterface

Builds and returns a new PropertyAccessor object.

Returns

\Symfony\Component\PropertyAccess\PropertyAccessorInterface —

The built PropertyAccessor