for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pheanstalk\Command;
use Pheanstalk\Structure\Tube;
/**
* The 'stats-tube' command.
*
* Gives statistical information about the specified tube if it exists.
* @author Valentin Corre
* @package Pheanstalk
* @license http://www.opensource.org/licenses/mit-license.php
*/
class StatsTubeCommand extends AbstractCommand
{
/** @var Tube $tube */
private $tube;
* @param Tube $tube
public function __construct(Tube $tube)
$this->tube = $tube;
}
* @inheritDoc
public function getGroup(): string
return 'queue';
public function getAction(): string
return 'get';
public function getFilters(): array
return [
'id' => $this->tube->getId()
];