Beanstalk\Command\IgnoreTube Class Ref

class Beanstalk\Command\IgnoreTube
Extends:Beanstalk\Command
Description:Ignore command
Author:Joshua Dechant <jdechant@shapeup.com>

The “ignore” command is for consumers. It removes the named tube from the watch list for the current connection.

Class Methods

Beanstalk\Command\IgnoreTube::__construct($tube)
Description:

Constructor

Parameters:
  • $tube (string) – Tube to remove from the watch list
Beanstalk\Command\IgnoreTube::getCommand()
Description:Get the command to send to the beanstalkd server
Returns:string
Beanstalk\Command\IgnoreTube::parseResponse($response[, $data = null, $conn = null])
Description:

Parse the response for success or failure.

Parameters:
  • $response (string) – Response line, i.e, first line in response
  • $data (string) – Data received with reponse, if any, else null
  • $conn (BeanstalkConnection) – BeanstalkConnection use to send the command
Returns:

integer The number of tubes being watched

Throws:

BeanstalkException When the requested tube cannot be ignored

Throws:

BeanstalkException When any error occurs