Beanstalk\Command\
Peek
¶Extends: | Beanstalk\Command |
---|---|
Description: | The peek commands let the client inspect a job in the system |
Author: | Joshua Dechant <jdechant@shapeup.com> |
Class Methods
Peek::__construct
– ConstructorPeek::getCommand
– Get the command to send to the beanstalkd serverPeek::parseResponse
– Parse the response for success or failure.Peek::returnsData
– Does the command return data?Beanstalk\Command\Peek::
__construct
($what)¶Description: | Constructor |
---|---|
Parameters: |
|
Beanstalk\Command\Peek::
getCommand
()¶Description: | Get the command to send to the beanstalkd server |
---|---|
Returns: | string |
Beanstalk\Command\Peek::
parseResponse
($response[, $data = null, $conn = null])¶Description: | Parse the response for success or failure. |
---|---|
Parameters: |
|
Returns: | BeanstalkJob |
Throws: | BeanstalkException When the job doesn’t exist or there are no jobs in the requested state |
Throws: | BeanstalkException When any other error occurs |
Beanstalk\Command\Peek::
returnsData
()¶Description: | Does the command return data? |
---|---|
Returns: | boolean |