PHP Class ValueObjects\Structure\Dictionary

Inheritance: extends ValueObjects\Structure\Collection
Afficher le fichier Open project: nicolopignatelli/valueobjects Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

containsKey() public méthode

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

containsValue() public méthode

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

fromNative() public static méthode

Returns a new Dictionary object
public static fromNative ( ) : self
Résultat self

keys() public méthode

Returns a Collection of the keys
public keys ( ) : ValueObjects\Structure\Collection
Résultat ValueObjects\Structure\Collection

values() public méthode

Returns a Collection of the values
public values ( ) : ValueObjects\Structure\Collection
Résultat ValueObjects\Structure\Collection