Menu

## Collection
in package

Collection.php : 8

### Table of Contents

$allowOverwite : bool
$caseSensitive : bool
$name : string|null
$readOnly : bool
$throwOverwriteExceptions : bool
$items : array<string|int, mixed>
__construct() : mixed
add() : Collection
addFromArray() : Collection
get() : mixed
getOrSet() : array<string|int, mixed>
keyExists() : bool
  Returns true if a item with the specified key exists.
keys() : array<string|int, mixed>
length() : int
remove() : Collection
toArray() : array<string|int, mixed>

### Properties

#### $allowOverwite

Collection.php : 15
`public bool $allowOverwite = false`

#### $caseSensitive

Collection.php : 21
`public bool $caseSensitive = false`

#### $name

Collection.php : 13
`public string|null $name`

#### $readOnly

Collection.php : 17
`public bool $readOnly = false`

#### $throwOverwriteExceptions

Collection.php : 19
`public bool $throwOverwriteExceptions = false`

#### $items

Collection.php : 11
`private array<string|int, mixed> $items = []`

### Methods

#### __construct()

Collection.php : 23
`public __construct([array<string|int, mixed> $data = [] ][, string|null $name = null ][, bool $overwrite = false ][, bool $readOnly = false ][, bool $throwOverwriteExceptions = false ][, bool $caseSensitive = false ]) : mixed`

##### Parameters

$data : array<string|int, mixed> = []
$name : string|null = null
$overwrite : bool = false
$readOnly : bool = false
$throwOverwriteExceptions : bool = false
$caseSensitive : bool = false

##### Return values

mixed —

#### add()

Collection.php : 114
`public add(mixed $key, mixed $value) : Collection`

##### Parameters

$key : mixed
$value : mixed

##### Return values

Collection —

#### addFromArray()

Collection.php : 132
`public addFromArray(array<string|int, mixed> $array) : Collection`

##### Parameters

$array : array<string|int, mixed>

##### Return values

Collection —

#### get()

Collection.php : 81
`public get(mixed $key) : mixed`

##### Parameters

$key : mixed

##### Return values

mixed —

#### getOrSet()

Collection.php : 99
`public getOrSet(mixed $key, mixed $value) : array<string|int, mixed>`

##### Parameters

$key : mixed
$value : mixed

##### Return values

array<string|int, mixed> —

#### keyExists()

Collection.php : 58

Returns true if a item with the specified key exists.

`public keyExists( $key) : bool`

##### Parameters

$key :

##### Return values

bool —

#### keys()

Collection.php : 76
`public keys() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

#### length()

Collection.php : 48
`public length() : int`

##### Return values

int —

#### remove()

Collection.php : 140
`public remove(string $key) : Collection`

##### Parameters

$key : string

##### Return values

Collection —

#### toArray()

Collection.php : 43
`public toArray() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

## Search results