_job = $job; $this->_priority = $priority; $this->_delay = $delay; } /* (non-phpdoc) * @see Command::getCommandLine() */ public function getCommandLine() { return sprintf( 'release %u %u %u', $this->_job->getId(), $this->_priority, $this->_delay ); } /* (non-phpdoc) * @see ResponseParser::parseResponse() */ public function parseResponse($responseLine, $responseData) { if ($responseLine == Response::RESPONSE_BURIED) { throw new Exception\ServerException(sprintf( 'Job %u %s: out of memory trying to grow data structure', $this->_job->getId(), $responseLine )); } if ($responseLine == Response::RESPONSE_NOT_FOUND) { throw new Exception\ServerException(sprintf( 'Job %u %s: does not exist or is not reserved by client', $this->_job->getId(), $responseLine )); } return $this->_createResponse($responseLine); } }