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

ignoreTube() public method

Example return array: ['WATCHED' => 1] Added on 10-Jan-2014 20:04 IST by Tapan Kumar Thapa @ [email protected]
public ignoreTube ( string $tube ) : null | array
$tube string
return null | array
    public function ignoreTube($tube)
    {
        $result = null;
        $lines = $this->getWatchingResponse('ignore ' . $this->getTubeName($tube));
        if (!empty($lines)) {
            list($name, $value) = explode(' ', $lines);
            if (null !== $value) {
                $result[$name] = intval($value);
            }
        }
        return $result;
    }