PropertyAccessorBuilder
class PropertyAccessorBuilder
A configurable builder to create a PropertyAccessor.
Methods
Enables the use of "__call" by the PropertyAccessor.
Disables the use of "__call" by the PropertyAccessor.
No description
Enables exceptions when reading a non-existing index.
Disables exceptions when reading a non-existing index.
No description
Builds and returns a new PropertyAccessor object.
Details
at line line 36
PropertyAccessorBuilder
enableMagicCall()
Enables the use of "__call" by the PropertyAccessor.
at line line 48
PropertyAccessorBuilder
disableMagicCall()
Disables the use of "__call" by the PropertyAccessor.
at line line 58
bool
isMagicCallEnabled()
at line line 71
PropertyAccessorBuilder
enableExceptionOnInvalidIndex()
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.
at line line 85
PropertyAccessorBuilder
disableExceptionOnInvalidIndex()
Disables exceptions when reading a non-existing index.
Instead, null is returned when calling PropertyAccessorInterface::getValue() on a non-existing index.
at line line 95
bool
isExceptionOnInvalidIndexEnabled()
at line line 105
PropertyAccessorInterface
getPropertyAccessor()
Builds and returns a new PropertyAccessor object.