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