PHP Class Collections\Dictionary

Inheritance: extends collections\AbstractCollectionArray, implements collections\MapInterface, implements ArrayAccess, use trait Collections\Traits\StrictKeyedIterableTrait, use trait Collections\Traits\GuardTrait
ファイルを表示 Open project: danielgsims/php-collections Class Usage Examples

Protected Properties

Property Type Description
$keyType
$storage
$valType

Public Methods

Method 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 method

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

add() public method

public add ( $key, $value )

clear() public method

public clear ( )

count() public method

public count ( )

delete() public method

public delete ( $key )

each() public method

public each ( callable $callable )
$callable callable

exists() public method

public exists ( $key )

filter() public method

public filter ( callable $condition )
$condition callable

get() public method

public get ( $key )

getIterator() public method

public getIterator ( )

getKeyType() public method

public getKeyType ( )

getOrElse() public method

public getOrElse ( $key, $default )

getValueType() public method

public getValueType ( )

keys() public method

public keys ( )

map() public method

public map ( callable $callable )
$callable callable

merge() public method

public merge ( $newItems )

toArray() public method

public toArray ( )

valueExists() public method

public valueExists ( $value )

values() public method

public values ( )

without() public method

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