PHP Class Collections\Dictionary

Inheritance: extends collections\AbstractCollectionArray, implements collections\MapInterface, implements ArrayAccess, use trait Collections\Traits\StrictKeyedIterableTrait, use trait Collections\Traits\GuardTrait
Afficher le fichier Open project: danielgsims/php-collections Class Usage Examples

Protected Properties

Свойство Type Description
$keyType
$storage
$valType

Méthodes publiques

Méthode Description
__construct ( $keyType, $valType, array $storage = [] )
add ( $key, $value )
clear ( )
count ( )
delete ( $key )
each ( callable $callable )
exists ( $key )
filter ( callable $condition )
get ( $key )
getIterator ( )
getKeyType ( )
getOrElse ( $key, $default )
getValueType ( )
keys ( )
map ( callable $callable )
merge ( $newItems )
toArray ( )
valueExists ( $value )
values ( )
without ( callable $condition )

Method Details

__construct() public méthode

public __construct ( $keyType, $valType, array $storage = [] )
$keyType
$valType
$storage array

add() public méthode

public add ( $key, $value )

clear() public méthode

public clear ( )

count() public méthode

public count ( )

delete() public méthode

public delete ( $key )

each() public méthode

public each ( callable $callable )
$callable callable

exists() public méthode

public exists ( $key )

filter() public méthode

public filter ( callable $condition )
$condition callable

get() public méthode

public get ( $key )

getIterator() public méthode

public getIterator ( )

getKeyType() public méthode

public getKeyType ( )

getOrElse() public méthode

public getOrElse ( $key, $default )

getValueType() public méthode

public getValueType ( )

keys() public méthode

public keys ( )

map() public méthode

public map ( callable $callable )
$callable callable

merge() public méthode

public merge ( $newItems )

toArray() public méthode

public toArray ( )

valueExists() public méthode

public valueExists ( $value )

values() public méthode

public values ( )

without() public méthode

public without ( callable $condition )
$condition callable

Property Details

$keyType protected_oe property

protected $keyType

$storage protected_oe property

protected $storage

$valType protected_oe property

protected $valType