PHP 클래스 Storm\Core\Containers\Map

저자: Elliot Levin ([email protected])
상속: implements IteratorAggregate, implements ArrayAccess
파일 보기 프로젝트 열기: timetoogo/penumbra 1 사용 예제들

공개 메소드들

메소드 설명
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 )

비공개 메소드들

메소드 설명
Detach ( $Instance, $ToInstance )
MapNew ( $Instance, $ToInstance )

메소드 상세

From() 공개 정적인 메소드

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.
리턴 Map The created map

GetInstances() 공개 메소드

public GetInstances ( ) : array
리턴 array

GetToInstances() 공개 메소드

public GetToInstances ( ) : array
리턴 array

Map() 공개 메소드

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

Unmap() 공개 메소드

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

__construct() 공개 메소드

public __construct ( )

getIterator() 공개 메소드

public getIterator ( )

offsetExists() 공개 메소드

public offsetExists ( $Instance )

offsetGet() 공개 메소드

public offsetGet ( $Instance )

offsetSet() 공개 메소드

public offsetSet ( $Instance, $ToInstance )

offsetUnset() 공개 메소드

public offsetUnset ( $Instance )