PropertyAccessorBuilder
class PropertyAccessorBuilder
A configurable builder to create a PropertyAccessor.
Methods
Enables the use of "__call" by the PropertyAccessor.
Disables the use of "__call" by the PropertyAccessor.
No description
Enables exceptions when reading a non-existing index.
Disables exceptions when reading a non-existing index.
No description
Sets a cache system.
Gets the used cache system.
Builds and returns a new PropertyAccessor object.
Details
$this
enableExceptionOnInvalidIndex()
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.
$this
disableExceptionOnInvalidIndex()
Disables exceptions when reading a non-existing index.
Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.
PropertyAccessorBuilder
setCacheItemPool(CacheItemPoolInterface $cacheItemPool = null)
Sets a cache system.