PHP 클래스 PHPDaemon\Structures\ObjectStorage

저자: Vasily Zorin ([email protected])
상속: extends SplObjectStorage, use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

공개 메소드들

메소드 설명
detachFirst ( ) : object Detaches first object and returns it
each ( string $method, $args ) : integer Call given method of all objects in storage
getFirst ( ) : object Returns first object
removeAll ( SplObjectStorage $obj = null ) : void Remove all objects from this storage, which contained in another storage

메소드 상세

detachFirst() 공개 메소드

Detaches first object and returns it
public detachFirst ( ) : object
리턴 object

each() 공개 메소드

Call given method of all objects in storage
public each ( string $method, $args ) : integer
$method string Method name
$args Arguments
리턴 integer Number of called objects

getFirst() 공개 메소드

Returns first object
public getFirst ( ) : object
리턴 object

removeAll() 공개 메소드

Remove all objects from this storage, which contained in another storage
public removeAll ( SplObjectStorage $obj = null ) : void
$obj SplObjectStorage
리턴 void