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
intgetIterator()
public
getIterator() : Traversable
Return values
TraversableoffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
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
Return values
mixed|nulloffsetSet()
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