PHP Class 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
Inheritance: implements ArrayAccess
Afficher le fichier Open project: webonyx/graphql-php

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

MixedStore constructor.
public __construct ( )

offsetExists() public méthode

Whether a offset exists
public offsetExists ( mixed $offset ) : boolean
$offset mixed

An offset to check for.

Résultat boolean true on success or false on failure.

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

offsetGet() public méthode

Offset to retrieve
public offsetGet ( mixed $offset ) : mixed
$offset mixed

The offset to retrieve.

Résultat mixed Can return all value types.

offsetSet() public méthode

Offset to set
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed

The offset to assign the value to.

$value mixed

The value to set.

Résultat void

offsetUnset() public méthode

Offset to unset
public offsetUnset ( mixed $offset ) : void
$offset mixed

The offset to unset.

Résultat void