for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace ekinhbayar\GitAmp\Response;
use ekinhbayar\GitAmp\Events\Factory as EventFactory;
use Amp\Artax\Response;
use Psr\Log\LoggerInterface;
class Factory
{
private $eventFactory;
private $logger;
public function __construct(EventFactory $eventFactory, LoggerInterface $logger)
$this->eventFactory = $eventFactory;
$this->logger = $logger;
}
public function build(Response $response): Results
$results = new Results($this->eventFactory, $this->logger);
$results->appendResponse($response);
return $results;