PHP Class ValueObjects\Structure\Dictionary

Inheritance: extends ValueObjects\Structure\Collection
ファイルを表示 Open project: nicolopignatelli/valueobjects Class Usage Examples

Public Methods

Method Description
__construct ( SplFixedArray $key_value_pairs ) Returns a new Dictionary object
containsKey ( ValueObjects\ValueObjectInterface $object ) : boolean Tells whether $object is one of the keys
containsValue ( ValueObjects\ValueObjectInterface $object ) : boolean Tells whether $object is one of the values
fromNative ( ) : self Returns a new Dictionary object
keys ( ) : ValueObjects\Structure\Collection Returns a Collection of the keys
values ( ) : ValueObjects\Structure\Collection Returns a Collection of the values

Method Details

__construct() public method

Returns a new Dictionary object
public __construct ( SplFixedArray $key_value_pairs )
$key_value_pairs SplFixedArray

containsKey() public method

Tells whether $object is one of the keys
public containsKey ( ValueObjects\ValueObjectInterface $object ) : boolean
$object ValueObjects\ValueObjectInterface
return boolean

containsValue() public method

Tells whether $object is one of the values
public containsValue ( ValueObjects\ValueObjectInterface $object ) : boolean
$object ValueObjects\ValueObjectInterface
return boolean

fromNative() public static method

Returns a new Dictionary object
public static fromNative ( ) : self
return self

keys() public method

Returns a Collection of the keys
public keys ( ) : ValueObjects\Structure\Collection
return ValueObjects\Structure\Collection

values() public method

Returns a Collection of the values
public values ( ) : ValueObjects\Structure\Collection
return ValueObjects\Structure\Collection