public function pop()
    {
        if (!$this->count()) {
            return null;
        }

        $task = $this->getQueue()->dequeue();

        return $this->unserializeTask($task, '');
    }
public function pop()
    {
        if (!$this->count()) {
            return null;
        }

        $task = $this->getQueue()->dequeue();

        return $this->unserializeTask($task, '');
    }
public function pop ( ) { if ( ! $ this -> count ( ) ) { return null ; } $ task = $ this -> getQueue ( ) -> dequeue ( ) ; return $ this -> unserializeTask ( $ task , '' ) ; }
Overwriting the parent totally because in this case we need a much simpler logic for popping messages.

@return mixed|null
Overwriting the parent totally because in this case we need a much simpler logic for popping messages .