for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace seregazhuk\React\Memcached\Connection;
class CommandsPool
{
/**
* @var string[]
*/
protected $commands = [];
* @param string $command
public function add($command)
$this->commands[] = $command;
}
public function clear()
$this->commands = [];
* @return string
public function shift()
return array_shift($this->commands);