W3cubDocs

/Symfony 2.7

Symfony\Component\PropertyAccess\PropertyAccessorBuilder

class PropertyAccessorBuilder

A configurable builder for PropertyAccessorInterface objects.

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 in read context for array by PropertyAccessor

PropertyAccessorBuilder disableExceptionOnInvalidIndex()

Disables exceptions in read context for array by PropertyAccessor

bool isExceptionOnInvalidIndexEnabled()
PropertyAccessorInterface getPropertyAccessor()

Builds and returns a new propertyAccessor object.

Details

public PropertyAccessorBuilder enableMagicCall()

Enables the use of "__call" by the PropertyAccessor.

Return Value

PropertyAccessorBuilder The builder object

public PropertyAccessorBuilder disableMagicCall()

Disables the use of "__call" by the PropertyAccessor.

Return Value

PropertyAccessorBuilder The builder object

public bool isMagicCallEnabled()

Return Value

bool true if the use of "__call" by the PropertyAccessor is enabled

public PropertyAccessorBuilder enableExceptionOnInvalidIndex()

Enables exceptions in read context for array by PropertyAccessor

Return Value

PropertyAccessorBuilder The builder object

public PropertyAccessorBuilder disableExceptionOnInvalidIndex()

Disables exceptions in read context for array by PropertyAccessor

Return Value

PropertyAccessorBuilder The builder object

public bool isExceptionOnInvalidIndexEnabled()

Return Value

bool true is exceptions in read context for array is enabled

public PropertyAccessorInterface getPropertyAccessor()

Builds and returns a new propertyAccessor object.

Return Value

PropertyAccessorInterface The built propertyAccessor

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.html