DawidMazurek/php-jsonrpc-server

View on GitHub
src/Request/JsonRpcRequestAggregate.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;
    }
}