PropertyAccessorBuilder
in package
A configurable builder to create a PropertyAccessor.
Tags
Table of Contents
Properties
- $cacheItemPool : CacheItemPoolInterface|null
- $magicMethods : int
- $readInfoExtractor : PropertyReadInfoExtractorInterface|null
- $throwExceptionOnInvalidIndex : mixed
- $throwExceptionOnInvalidPropertyPath : mixed
- $writeInfoExtractor : PropertyWriteInfoExtractorInterface|null
Methods
- disableExceptionOnInvalidIndex() : $this
- Disables exceptions when reading a non-existing index.
- disableExceptionOnInvalidPropertyPath() : $this
- Disables exceptions when reading a non-existing index.
- disableMagicCall() : $this
- Disables the use of "__call" by the PropertyAccessor.
- disableMagicGet() : $this
- Disables the use of "__get" by the PropertyAccessor.
- disableMagicMethods() : $this
- Disable the use of all magic methods by the PropertyAccessor.
- disableMagicSet() : $this
- Disables the use of "__set" by the PropertyAccessor.
- enableExceptionOnInvalidIndex() : $this
- Enables exceptions when reading a non-existing index.
- enableExceptionOnInvalidPropertyPath() : $this
- Enables exceptions when reading a non-existing property.
- enableMagicCall() : $this
- Enables the use of "__call" by the PropertyAccessor.
- enableMagicGet() : self
- Enables the use of "__get" by the PropertyAccessor.
- enableMagicMethods() : $this
- Enables the use of all magic methods by the PropertyAccessor.
- enableMagicSet() : $this
- Enables the use of "__set" by the PropertyAccessor.
- getCacheItemPool() : CacheItemPoolInterface|null
- Gets the used cache system.
- getPropertyAccessor() : PropertyAccessorInterface
- Builds and returns a new PropertyAccessor object.
- getReadInfoExtractor() : PropertyReadInfoExtractorInterface|null
- getWriteInfoExtractor() : PropertyWriteInfoExtractorInterface|null
- isExceptionOnInvalidIndexEnabled() : bool
- isExceptionOnInvalidPropertyPath() : bool
- isMagicCallEnabled() : bool
- isMagicGetEnabled() : bool
- isMagicSetEnabled() : bool
- setCacheItemPool() : $this
- Sets a cache system.
- setReadInfoExtractor() : $this
- setWriteInfoExtractor() : $this
Properties
$cacheItemPool
private
CacheItemPoolInterface|null
$cacheItemPool
$magicMethods
private
int
$magicMethods
= \Symfony\Component\PropertyAccess\PropertyAccessor::MAGIC_GET | \Symfony\Component\PropertyAccess\PropertyAccessor::MAGIC_SET
$readInfoExtractor
private
PropertyReadInfoExtractorInterface|null
$readInfoExtractor
$throwExceptionOnInvalidIndex
private
mixed
$throwExceptionOnInvalidIndex
= false
$throwExceptionOnInvalidPropertyPath
private
mixed
$throwExceptionOnInvalidPropertyPath
= true
$writeInfoExtractor
private
PropertyWriteInfoExtractorInterface|null
$writeInfoExtractor
Methods
disableExceptionOnInvalidIndex()
Disables exceptions when reading a non-existing index.
public
disableExceptionOnInvalidIndex() : $this
Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.
Return values
$thisdisableExceptionOnInvalidPropertyPath()
Disables exceptions when reading a non-existing index.
public
disableExceptionOnInvalidPropertyPath() : $this
Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.
Return values
$thisdisableMagicCall()
Disables the use of "__call" by the PropertyAccessor.
public
disableMagicCall() : $this
Return values
$thisdisableMagicGet()
Disables the use of "__get" by the PropertyAccessor.
public
disableMagicGet() : $this
Return values
$thisdisableMagicMethods()
Disable the use of all magic methods by the PropertyAccessor.
public
disableMagicMethods() : $this
Return values
$thisdisableMagicSet()
Disables the use of "__set" by the PropertyAccessor.
public
disableMagicSet() : $this
Return values
$thisenableExceptionOnInvalidIndex()
Enables exceptions when reading a non-existing index.
public
enableExceptionOnInvalidIndex() : $this
This has no influence on writing non-existing indices with PropertyAccessorInterface::setValue() which are always created on-the-fly.
Return values
$thisenableExceptionOnInvalidPropertyPath()
Enables exceptions when reading a non-existing property.
public
enableExceptionOnInvalidPropertyPath() : $this
This has no influence on writing non-existing indices with PropertyAccessorInterface::setValue() which are always created on-the-fly.
Return values
$thisenableMagicCall()
Enables the use of "__call" by the PropertyAccessor.
public
enableMagicCall() : $this
Return values
$thisenableMagicGet()
Enables the use of "__get" by the PropertyAccessor.
public
enableMagicGet() : self
Return values
selfenableMagicMethods()
Enables the use of all magic methods by the PropertyAccessor.
public
enableMagicMethods() : $this
Return values
$thisenableMagicSet()
Enables the use of "__set" by the PropertyAccessor.
public
enableMagicSet() : $this
Return values
$thisgetCacheItemPool()
Gets the used cache system.
public
getCacheItemPool() : CacheItemPoolInterface|null
Return values
CacheItemPoolInterface|nullgetPropertyAccessor()
Builds and returns a new PropertyAccessor object.
public
getPropertyAccessor() : PropertyAccessorInterface
Return values
PropertyAccessorInterfacegetReadInfoExtractor()
public
getReadInfoExtractor() : PropertyReadInfoExtractorInterface|null
Return values
PropertyReadInfoExtractorInterface|nullgetWriteInfoExtractor()
public
getWriteInfoExtractor() : PropertyWriteInfoExtractorInterface|null
Return values
PropertyWriteInfoExtractorInterface|nullisExceptionOnInvalidIndexEnabled()
public
isExceptionOnInvalidIndexEnabled() : bool
Return values
bool —whether an exception is thrown or null is returned when reading a non-existing index
isExceptionOnInvalidPropertyPath()
public
isExceptionOnInvalidPropertyPath() : bool
Return values
bool —whether an exception is thrown or null is returned when reading a non-existing property
isMagicCallEnabled()
public
isMagicCallEnabled() : bool
Return values
bool —whether the use of "__call" by the PropertyAccessor is enabled
isMagicGetEnabled()
public
isMagicGetEnabled() : bool
Return values
bool —whether the use of "__get" by the PropertyAccessor is enabled
isMagicSetEnabled()
public
isMagicSetEnabled() : bool
Return values
bool —whether the use of "__set" by the PropertyAccessor is enabled
setCacheItemPool()
Sets a cache system.
public
setCacheItemPool([CacheItemPoolInterface $cacheItemPool = null ]) : $this
Parameters
- $cacheItemPool : CacheItemPoolInterface = null
Return values
$thissetReadInfoExtractor()
public
setReadInfoExtractor(PropertyReadInfoExtractorInterface|null $readInfoExtractor) : $this
Parameters
- $readInfoExtractor : PropertyReadInfoExtractorInterface|null
Return values
$thissetWriteInfoExtractor()
public
setWriteInfoExtractor(PropertyWriteInfoExtractorInterface|null $writeInfoExtractor) : $this
Parameters
- $writeInfoExtractor : PropertyWriteInfoExtractorInterface|null