Documentation

SampleArrayAccess
in package
implements ArrayAccess

Sample class that implements ArrayAccess copied from http://www.php.net/manual/en/class.arrayaccess.php with some minor changes This class required for PHPUnit_Framework_Constraint_ArrayHasKey testing

Interfaces, Classes and Traits

ArrayAccess

Table of Contents

$container  : mixed
__construct()  : mixed
offsetExists()  : mixed
offsetGet()  : mixed
offsetSet()  : mixed
offsetUnset()  : mixed

Properties

Methods

offsetExists()

public offsetExists(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : mixed
Parameters
$offset : mixed
$value : mixed
Return values
mixed

offsetUnset()

public offsetUnset(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

Search results