for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ChainableTest\Fixtures;
use Chainable\ChainableInterface;
use Chainable\Result\ChainResult;
use Chainable\Result\ChainResultInterface;
abstract class AbstractResponse implements ChainableInterface
{
abstract public function getValue();
/**
* @param mixed $data
*
* @return ChainResultInterface
*/
public function process(... $data)
$value = reset($data);
return new ChainResult($this->getValue(), reset($value) === $this->getValue());
}