Phive\Queue\Pdo\GenericPdoQueue::pop PHP Method

pop() public method

public pop ( )
    public function pop()
    {
        $stmt = $this->pdo->query($this->getPopSql());
        $result = $stmt->fetchColumn();
        $stmt->closeCursor();
        if (false === $result) {
            throw new NoItemAvailableException($this);
        }
        return $result;
    }