Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class RequestAutoStorage implements RequestStorage |
||
25 | { |
||
26 | /** @var ServerRequestInterface[] */ |
||
27 | private $requests; |
||
28 | |||
29 | public function __construct() |
||
32 | } |
||
33 | |||
34 | public function addRequest(ServerRequestInterface $request): void |
||
35 | { |
||
36 | $this->requests[] = $request; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | * |
||
42 | * @see \Mcustiel\Phiremock\Server\Model\RequestStorage::listRequests() |
||
43 | */ |
||
44 | public function listRequests(): array |
||
45 | { |
||
46 | return $this->requests; |
||
47 | } |
||
48 | |||
49 | public function clearRequests(): void |
||
52 | } |
||
53 | } |
||
54 |