\Symfony\Component\PropertyAccessPropertyAccessorBuilder

A configurable builder to create a PropertyAccessor.

Summary

Methods
Properties
Constants
enableMagicCall()
disableMagicCall()
isMagicCallEnabled()
enableExceptionOnInvalidIndex()
disableExceptionOnInvalidIndex()
isExceptionOnInvalidIndexEnabled()
setCacheItemPool()
getCacheItemPool()
getPropertyAccessor()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$magicCall
$throwExceptionOnInvalidIndex
$cacheItemPool
N/A

Properties

$magicCall

$magicCall : 

Type

$throwExceptionOnInvalidIndex

$throwExceptionOnInvalidIndex : 

Type

$cacheItemPool

$cacheItemPool : \Psr\Cache\CacheItemPoolInterface|null

Type

\Psr\Cache\CacheItemPoolInterface|null

Methods

enableMagicCall()

enableMagicCall() : $this

Enables the use of "__call" by the PropertyAccessor.

Returns

$this

disableMagicCall()

disableMagicCall() : $this

Disables the use of "__call" by the PropertyAccessor.

Returns

$this

isMagicCallEnabled()

isMagicCallEnabled() : boolean

Returns

boolean —

whether the use of "__call" 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() : boolean

Returns

boolean —

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

setCacheItemPool()

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

Sets a cache system.

Parameters

\Psr\Cache\CacheItemPoolInterface|null $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