MultiMap
in package
implements
JsonSerializable
MultiMap Class Doc Comment
Tags
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $map : array<string|int, mixed>
- $size : int
- clear() : mixed
- clears the multi map.
- containsEntry() : bool
- containsKey() : bool
- containsValue() : bool
- get() : array<string|int, mixed>
- isEmpty() : bool
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- keys() : array<string|int, mixed>
- keySet() : array<string|int, mixed>
- put() : bool
- putAll() : bool
- remove() : bool
- removeAll() : bool
- replaceValues() : bool
- size() : int
- values() : array<string|int, mixed>
Properties
$map
private
array<string|int, mixed>
$map
= array()
$size
private
int
$size
= 0
Methods
clear()
clears the multi map.
public
clear() : mixed
Return values
mixed —containsEntry()
public
containsEntry(string $key, string $value) : bool
Parameters
- $key : string
- $value : string
Return values
bool —containsKey()
public
containsKey(string $key) : bool
Parameters
- $key : string
Return values
bool —containsValue()
public
containsValue(string $value) : bool
Parameters
- $value : string
Return values
bool —get()
public
get(string $key) : array<string|int, mixed>
Parameters
- $key : string
Return values
array<string|int, mixed> —isEmpty()
public
isEmpty() : bool
Return values
bool —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.
keys()
public
keys() : array<string|int, mixed>
Return values
array<string|int, mixed> —keySet()
public
keySet() : array<string|int, mixed>
Return values
array<string|int, mixed> —put()
public
put(string $key, string $value) : bool
Parameters
- $key : string
- $value : string
Return values
bool —putAll()
public
putAll(string $key, array<string|int, mixed> $values) : bool
Parameters
- $key : string
- $values : array<string|int, mixed>
Return values
bool —remove()
public
remove(string $key, string $value) : bool
Parameters
- $key : string
- $value : string
Return values
bool —removeAll()
public
removeAll(string $key) : bool
Parameters
- $key : string
Return values
bool —replaceValues()
public
replaceValues(string $key, array<string|int, mixed> $values) : bool
Parameters
- $key : string
- $values : array<string|int, mixed>
Return values
bool —size()
public
size() : int
Return values
int —values()
public
values() : array<string|int, mixed>