PHP Class PHPDaemon\Structures\ObjectStorage

Author: Vasily Zorin ([email protected])
Inheritance: extends SplObjectStorage, use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Afficher le fichier Open project: kakserpom/phpdaemon Class Usage Examples

Méthodes publiques

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

Method Details

detachFirst() public méthode

Detaches first object and returns it
public detachFirst ( ) : object
Résultat object

each() public méthode

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

getFirst() public méthode

Returns first object
public getFirst ( ) : object
Résultat object

removeAll() public méthode

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