Phive\Queue\SysVQueue::getQueue PHP Method

getQueue() private method

private getQueue ( )
    private function getQueue()
    {
        if (!is_resource($this->queue)) {
            $this->queue = msg_get_queue($this->key, $this->perms);
            if (!is_resource($this->queue)) {
                throw new QueueException($this, 'Failed to create/attach to the queue.');
            }
        }
        return $this->queue;
    }