for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace NamespaceProtector\Result;
use Countable;
final class ResultCollectorReadable implements Countable, ResultCollectorInterface
{
/** @var ResultCollectorInterface */
private $resultCollector;
public function __construct(ResultCollectorInterface $resultCollector)
$this->resultCollector = $resultCollector;
}
public function count(): int
return \count($this->resultCollector);
/** @return array<ResultInterface> */
public function get(): iterable
return $this->resultCollector->get();
return $this->resultCollector->get()
iterable
NamespaceProtector\Result\ResultInterface[]