A configurable builder to create a PropertyAccessor.
- author Jérémie Augustin
Methods |
public disableExceptionOnInvalidIndex() : static Disables exceptions when reading a non-existing index. Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.
|
public disableExceptionOnInvalidPropertyPath() : static Disables exceptions when reading a non-existing index. Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.
|
public disableMagicCall() : static Disables the use of "__call" by the PropertyAccessor.
|
public disableMagicGet() : static Disables the use of "__get" by the PropertyAccessor.
|
public disableMagicMethods() : static Disable the use of all magic methods by the PropertyAccessor.
|
public disableMagicSet() : static Disables the use of "__set" by the PropertyAccessor.
|
public enableExceptionOnInvalidIndex() : static 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.
|
public enableExceptionOnInvalidPropertyPath() : static 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.
|
public enableMagicCall() : static Enables the use of "__call" by the PropertyAccessor.
|
public enableMagicGet() : self Enables the use of "__get" by the PropertyAccessor. |
public enableMagicMethods() : static Enables the use of all magic methods by the PropertyAccessor.
|
public enableMagicSet() : static Enables the use of "__set" by the PropertyAccessor.
|
public getCacheItemPool() : ?Psr\Cache\CacheItemPoolInterface Gets the used cache system. |
public getPropertyAccessor() : Symfony Builds and returns a new PropertyAccessor object. |
public getReadInfoExtractor() : ?Symfony |
public getWriteInfoExtractor() : ?Symfony |
public isExceptionOnInvalidIndexEnabled() : bool
|
public isExceptionOnInvalidPropertyPath() : bool
|
public isMagicCallEnabled() : bool
|
public isMagicGetEnabled() : bool
|
public isMagicSetEnabled() : bool
|
public setCacheItemPool(?Psr\Cache\CacheItemPoolInterface $cacheItemPool) : static Sets a cache system.
|
public setReadInfoExtractor(?Symfony
|
public setWriteInfoExtractor(?Symfony
|
Properties |
private ?Psr\Cache\CacheItemPoolInterface $cacheItemPool = NULL |
private int $magicMethods = 3 |
private ?Symfony |
private bool $throwExceptionOnInvalidIndex = false |
private bool $throwExceptionOnInvalidPropertyPath = true |
private ?Symfony |