Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | final class OutstandingCalls |
||
16 | 3 | { |
|
17 | /** @var array<OutstandingCall> */ |
||
18 | 3 | protected array $calls = []; |
|
19 | |||
20 | 3 | public function newCall(Closure $canceller): OutstandingCall |
|
29 | } |
||
30 | |||
31 | public function getCall(string $uniqid): OutstandingCall |
||
34 | 2 | } |
|
35 | |||
36 | /** |
||
37 | * @return array<OutstandingCall> |
||
38 | */ |
||
39 | public function getCalls(): array |
||
42 | 2 | } |
|
43 | |||
44 | private function getNewUniqid(): string |
||
53 |