for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pheanstalk\Command;
use Pheanstalk\Parser\RequestOkResponseParser;
use Pheanstalk\Structure\Workflow;
/**
* The 'delete' command.
*
* Permanently deletes an already-reserved job.
* @author Paul Annesley
* @package Pheanstalk
* @license http://www.opensource.org/licenses/mit-license.php
*/
class DeleteCommand extends AbstractCommand
{
/** @var Workflow $workflow */
private $workflow;
* @param Workflow $workflow
public function __construct(Workflow $workflow)
$this->workflow = $workflow;
}
* @inheritDoc
public function getGroup(): string
return 'workflow';
public function getAction(): string
return 'delete';
public function getFilters(): array
return [
'id' => $this->workflow->getId()
];
public function getResponseParser()
return new RequestOkResponseParser();