for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pheanstalk\Command;
use Pheanstalk\Command;
use Pheanstalk\Response;
use Pheanstalk\XmlResponseParser;
/**
* Common functionality for Command implementations.
*
* @author Paul Annesley
* @package Pheanstalk
* @license http://www.opensource.org/licenses/mit-license.php
*/
abstract class AbstractCommand implements Command
{
* @inheritDoc
public function getFilters(): array
return [];
}
public function getParameters(): array
public function getResponseParser()
// concrete implementation must either:
// a) implement ResponseParser
// b) override this getResponseParser method
return new XmlResponseParser();