PHP Класс GraphQL\Utils\MixedStore

Note: unfortunately when storing array as key - access and modification is O(N) (yet this should be really rare case and should be avoided when possible) Class MixedStore
Наследование: implements ArrayAccess
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) MixedStore constructor.
offsetExists ( mixed $offset ) : boolean Whether a offset exists
offsetGet ( mixed $offset ) : mixed Offset to retrieve
offsetSet ( mixed $offset, mixed $value ) : void Offset to set
offsetUnset ( mixed $offset ) : void Offset to unset

Описание методов

__construct() публичный Метод

MixedStore constructor.
public __construct ( )

offsetExists() публичный Метод

Whether a offset exists
С версии: 5.0.0
public offsetExists ( mixed $offset ) : boolean
$offset mixed

An offset to check for.

Результат boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

offsetGet() публичный Метод

Offset to retrieve
С версии: 5.0.0
public offsetGet ( mixed $offset ) : mixed
$offset mixed

The offset to retrieve.

Результат mixed Can return all value types.

offsetSet() публичный Метод

Offset to set
С версии: 5.0.0
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed

The offset to assign the value to.

$value mixed

The value to set.

Результат void

offsetUnset() публичный Метод

Offset to unset
С версии: 5.0.0
public offsetUnset ( mixed $offset ) : void
$offset mixed

The offset to unset.

Результат void