PHPDaemon\Structures\ObjectStorage::detachFirst PHP Method

detachFirst() public method

Detaches first object and returns it
public detachFirst ( ) : object
return object
    public function detachFirst()
    {
        $this->rewind();
        $o = $this->current();
        if (!$o) {
            return false;
        }
        $this->detach($o);
        return $o;
    }