Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
20 | 3 | public function newCall(Closure $canceller): OutstandingCall |
|
21 | 1 | { |
|
22 | 3 | $uniqid = $this->getNewUniqid(); |
|
23 | |||
24 | 3 | $this->calls[$uniqid] = new OutstandingCall($uniqid, $canceller, function (OutstandingCall $call): void { |
|
25 | unset($this->calls[$call->getUniqid()]); |
||
26 | }); |
||
27 | |||
28 | return $this->calls[$uniqid]; |
||
29 | } |
||
53 |