\Symfony\Component\PropertyAccessPropertyAccessorBuilder

A configurable builder to create a PropertyAccessor.

Summary

Methods
Properties
Constants
enableMagicCall()
disableMagicCall()
isMagicCallEnabled()
enableExceptionOnInvalidIndex()
disableExceptionOnInvalidIndex()
isExceptionOnInvalidIndexEnabled()
getPropertyAccessor()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$magicCall
$throwExceptionOnInvalidIndex
N/A

Properties

$magicCall

$magicCall

$throwExceptionOnInvalidIndex

$throwExceptionOnInvalidIndex

Methods

enableMagicCall()

enableMagicCall() : $this

Enables the use of "__call" by the PropertyAccessor.

Returns

$this —

disableMagicCall()

disableMagicCall() : $this

Disables the use of "__call" by the PropertyAccessor.

Returns

$this —

isMagicCallEnabled()

isMagicCallEnabled() : bool

Returns

bool —

whether the use of "__call" by the PropertyAccessor is enabled

enableExceptionOnInvalidIndex()

enableExceptionOnInvalidIndex() : $this

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.

Returns

$this —

disableExceptionOnInvalidIndex()

disableExceptionOnInvalidIndex() : $this

Disables exceptions when reading a non-existing index.

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

Returns

$this —

isExceptionOnInvalidIndexEnabled()

isExceptionOnInvalidIndexEnabled() : bool

Returns

bool —

whether an exception is thrown or null is returned when reading a non-existing index

getPropertyAccessor()

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

Builds and returns a new PropertyAccessor object.

Returns

\Symfony\Component\PropertyAccess\PropertyAccessorInterface —

The built PropertyAccessor