class PropertyAccessorBuilder
A configurable builder to create a PropertyAccessor.
$this | enableMagicCall() Enables the use of "__call" by the PropertyAccessor. | |
$this | disableMagicCall() Disables the use of "__call" by the PropertyAccessor. | |
bool | isMagicCallEnabled() | |
$this | enableExceptionOnInvalidIndex() Enables exceptions when reading a non-existing index. | |
$this | disableExceptionOnInvalidIndex() Disables exceptions when reading a non-existing index. | |
bool | isExceptionOnInvalidIndexEnabled() | |
PropertyAccessorBuilder | setCacheItemPool(CacheItemPoolInterface $cacheItemPool = null) Sets a cache system. | |
CacheItemPoolInterface|null | getCacheItemPool() Gets the used cache system. | |
PropertyAccessorInterface | getPropertyAccessor() Builds and returns a new PropertyAccessor object. |
Enables the use of "__call" by the PropertyAccessor.
$this |
Disables the use of "__call" by the PropertyAccessor.
$this |
bool | whether the use of "__call" by the PropertyAccessor is enabled |
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 |
Disables exceptions when reading a non-existing index.
Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.
$this |
bool | whether an exception is thrown or null is returned when reading a non-existing index |
Sets a cache system.
CacheItemPoolInterface | $cacheItemPool |
PropertyAccessorBuilder | The builder object |
Gets the used cache system.
CacheItemPoolInterface|null |
Builds and returns a new PropertyAccessor object.
PropertyAccessorInterface | The built PropertyAccessor |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.html