Documentation

ToArray
in package
implements ArrayAccess

Interfaces, Classes, Traits and Enums

ArrayAccess

Table of Contents

$collection  : array<string|int, mixed>
__construct()  : mixed
collection()  : array<string|int, mixed>
offsetExists()  : bool
offsetGet()  : int|null
offsetSet()  : void
offsetUnset()  : void

Properties

$collection

private array<string|int, mixed> $collection

Methods

__construct()

public __construct(array<string|int, mixed> $collection) : mixed
Parameters
$collection : array<string|int, mixed>
Return values
mixed

collection()

public collection() : array<string|int, mixed>
Return values
array<string|int, mixed>

offsetExists()

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

offsetGet()

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

offsetSet()

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

offsetUnset()

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

Search results