SDK for PHP 3.x

HasDataTrait

Trait implementing ToArrayInterface, \ArrayAccess, \Countable, and \IteratorAggregate

Table of Contents

Methods

count()  : int
getIterator()  : Traversable
offsetExists()  : bool
offsetGet()  : mixed|null
This method returns a reference to the variable to allow for indirect array modification (e.g., $foo['bar']['baz'] = 'qux').
offsetSet()  : void
offsetUnset()  : void
toArray()  : mixed

Methods

count()

public count() : int
Return values
int

getIterator()

public getIterator() : Traversable
Return values
Traversable

offsetExists()

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

offsetGet()

This method returns a reference to the variable to allow for indirect array modification (e.g., $foo['bar']['baz'] = 'qux').

public & offsetGet( $offset) : mixed|null
Parameters
$offset :
Return values
mixed|null

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

toArray()

public toArray() : mixed
On this page