for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace seregazhuk\React\Memcached\Protocol\Response;
use seregazhuk\React\Memcached\Exception\FailedCommandException;
abstract class Response
{
/**
* @var string
*/
protected $data;
* @param string $data
public function __construct($data)
$this->data = $data;
}
* @return mixed
* @throws FailedCommandException
abstract public function parse();
protected function fail(): void
throw new FailedCommandException($this->data);