mediatekformation

PropertyAccessorBuilder
in package

A configurable builder to create a PropertyAccessor.

Tags
author

Jérémie Augustin jeremie.augustin@pixel-cookers.com

Table of Contents

$cacheItemPool  : CacheItemPoolInterface|null
$magicCall  : mixed
$throwExceptionOnInvalidIndex  : mixed
$throwExceptionOnInvalidPropertyPath  : mixed
disableExceptionOnInvalidIndex()  : $this
Disables exceptions when reading a non-existing index.
disableExceptionOnInvalidPropertyPath()  : $this
Disables exceptions when reading a non-existing index.
disableMagicCall()  : $this
Disables the use of "__call" by the PropertyAccessor.
enableExceptionOnInvalidIndex()  : $this
Enables exceptions when reading a non-existing index.
enableExceptionOnInvalidPropertyPath()  : $this
Enables exceptions when reading a non-existing property.
enableMagicCall()  : $this
Enables the use of "__call" by the PropertyAccessor.
getCacheItemPool()  : CacheItemPoolInterface|null
Gets the used cache system.
getPropertyAccessor()  : PropertyAccessorInterface
Builds and returns a new PropertyAccessor object.
isExceptionOnInvalidIndexEnabled()  : bool
isExceptionOnInvalidPropertyPath()  : bool
isMagicCallEnabled()  : bool
setCacheItemPool()  : PropertyAccessorBuilder
Sets a cache system.

Properties

Methods

disableExceptionOnInvalidIndex()

Disables exceptions when reading a non-existing index.

public disableExceptionOnInvalidIndex() : $this

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

Return values
$this

disableExceptionOnInvalidPropertyPath()

Disables exceptions when reading a non-existing index.

public disableExceptionOnInvalidPropertyPath() : $this

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

Return values
$this

disableMagicCall()

Disables the use of "__call" by the PropertyAccessor.

public disableMagicCall() : $this
Return values
$this

enableExceptionOnInvalidIndex()

Enables exceptions when reading a non-existing index.

public enableExceptionOnInvalidIndex() : $this

This has no influence on writing non-existing indices with PropertyAccessorInterface::setValue() which are always created on-the-fly.

Return values
$this

enableExceptionOnInvalidPropertyPath()

Enables exceptions when reading a non-existing property.

public enableExceptionOnInvalidPropertyPath() : $this

This has no influence on writing non-existing indices with PropertyAccessorInterface::setValue() which are always created on-the-fly.

Return values
$this

enableMagicCall()

Enables the use of "__call" by the PropertyAccessor.

public enableMagicCall() : $this
Return values
$this

isExceptionOnInvalidIndexEnabled()

public isExceptionOnInvalidIndexEnabled() : bool
Return values
bool

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

isExceptionOnInvalidPropertyPath()

public isExceptionOnInvalidPropertyPath() : bool
Return values
bool

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

isMagicCallEnabled()

public isMagicCallEnabled() : bool
Return values
bool

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

Search results