PHP Class Storm\Core\Containers\Map

Author: Elliot Levin ([email protected])
Inheritance: implements IteratorAggregate, implements ArrayAccess
Afficher le fichier Open project: timetoogo/penumbra Class Usage Examples

Méthodes publiques

Méthode Description
From ( array $Instances, array $ToInstances ) : Map Creates a new map from two arrays of instances.
GetInstances ( ) : array
GetToInstances ( ) : array
Map ( object $Instance, object $ToInstance ) : Map Maps an instance to another instance. Previous mappings for either instances are replaced.
Unmap ( object $Instance ) : Map Removes any mapping of the supplied instance.
__construct ( )
getIterator ( )
offsetExists ( $Instance )
offsetGet ( $Instance )
offsetSet ( $Instance, $ToInstance )
offsetUnset ( $Instance )

Private Methods

Méthode Description
Detach ( $Instance, $ToInstance )
MapNew ( $Instance, $ToInstance )

Method Details

From() public static méthode

Creates a new map from two arrays of instances.
public static From ( array $Instances, array $ToInstances ) : Map
$Instances array The array of objects to map.
$ToInstances array The array of object to map to.
Résultat Map The created map

GetInstances() public méthode

public GetInstances ( ) : array
Résultat array

GetToInstances() public méthode

public GetToInstances ( ) : array
Résultat array

Map() public méthode

Maps an instance to another instance. Previous mappings for either instances are replaced.
public Map ( object $Instance, object $ToInstance ) : Map
$Instance object
$ToInstance object
Résultat Map

Unmap() public méthode

Removes any mapping of the supplied instance.
public Unmap ( object $Instance ) : Map
$Instance object The instance to unmap.
Résultat Map

__construct() public méthode

public __construct ( )

getIterator() public méthode

public getIterator ( )

offsetExists() public méthode

public offsetExists ( $Instance )

offsetGet() public méthode

public offsetGet ( $Instance )

offsetSet() public méthode

public offsetSet ( $Instance, $ToInstance )

offsetUnset() public méthode

public offsetUnset ( $Instance )