Phalcon\Queue\Beanstalk\Extended::getTubeName PHP Method

getTubeName() protected method

Returns the tube name with prefix.
protected getTubeName ( string | null $tube ) : string
$tube string | null
return string
    protected function getTubeName($tube)
    {
        if (null !== $this->tubePrefix && null !== $tube) {
            $tube = str_replace($this->tubePrefix, '', $tube);
            if (0 !== strcmp($tube, 'default')) {
                return $this->tubePrefix . $tube;
            }
        }
        return $tube;
    }