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
Show file Open project: webonyx/graphql-php

Public Methods

Method 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 method

MixedStore constructor.
public __construct ( )

offsetExists() public method

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

An offset to check for.

return boolean true on success or false on failure.

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

offsetGet() public method

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

The offset to retrieve.

return mixed Can return all value types.

offsetSet() public method

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.

return void

offsetUnset() public method

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

The offset to unset.

return void