Copied!

A configurable builder to create a PropertyAccessor.

CloneableInstantiable
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.

  • return $this
public disableExceptionOnInvalidPropertyPath() : static
 

Disables exceptions when reading a non-existing index.

Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.

  • return $this
public disableMagicCall() : static
 

Disables the use of "__call" by the PropertyAccessor.

  • return $this
public disableMagicGet() : static
 

Disables the use of "__get" by the PropertyAccessor.

  • return $this
public disableMagicMethods() : static
 

Disable the use of all magic methods by the PropertyAccessor.

  • return $this
public disableMagicSet() : static
 

Disables the use of "__set" by the PropertyAccessor.

  • return $this
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.

  • return $this
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.

  • return $this
public enableMagicCall() : static
 

Enables the use of "__call" by the PropertyAccessor.

  • return $this
public enableMagicGet() : self
 

Enables the use of "__get" by the PropertyAccessor.

public enableMagicMethods() : static
 

Enables the use of all magic methods by the PropertyAccessor.

  • return $this
public enableMagicSet() : static
 

Enables the use of "__set" by the PropertyAccessor.

  • return $this
public getCacheItemPool() : ?Psr\Cache\CacheItemPoolInterface
 

Gets the used cache system.

public getPropertyAccessor() : Symfony\Component\PropertyAccess\PropertyAccessorInterface
 

Builds and returns a new PropertyAccessor object.

public getReadInfoExtractor() : ?Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface
public getWriteInfoExtractor() : ?Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface
public isExceptionOnInvalidIndexEnabled() : bool
 
  • return bool whether an exception is thrown or null is returned when reading a non-existing index
public isExceptionOnInvalidPropertyPath() : bool
 
  • return bool whether an exception is thrown or null is returned when reading a non-existing property
public isMagicCallEnabled() : bool
 
  • return bool whether the use of "__call" by the PropertyAccessor is enabled
public isMagicGetEnabled() : bool
 
  • return bool whether the use of "__get" by the PropertyAccessor is enabled
public isMagicSetEnabled() : bool
 
  • return bool whether the use of "__set" by the PropertyAccessor is enabled
public setCacheItemPool(?Psr\Cache\CacheItemPoolInterface $cacheItemPool = NULL) : static
 

Sets a cache system.

  • return $this
public setReadInfoExtractor(?Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface $readInfoExtractor) : static
 
  • return $this
public setWriteInfoExtractor(?Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface $writeInfoExtractor) : static
 
  • return $this
Properties
private ?Psr\Cache\CacheItemPoolInterface $cacheItemPool = NULL
private int $magicMethods = 3
private ?Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface $readInfoExtractor = NULL
private bool $throwExceptionOnInvalidIndex = false
private bool $throwExceptionOnInvalidPropertyPath = true
private ?Symfony\Component\PropertyInfo\PropertyWriteInfoExtractorInterface $writeInfoExtractor = NULL
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration