src/Request/JsonRpcRequestAggregate.php
<?php
declare(strict_types = 1);
namespace DawidMazurek\JsonRpc\Request;
class JsonRpcRequestAggregate
{
private $requests = [];
public function addRequest(JsonRpcRequest $request)
{
$this->requests []= $request;
}
/**
* @return JsonRpcRequest[]
*/
public function getAll(): array
{
return $this->requests;
}
}