| Total Complexity | 7 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class OutstandingCall implements OutstandingCallInterface |
||
| 13 | { |
||
| 14 | protected string $uniqid; |
||
| 15 | |||
| 16 | protected Deferred $deferred; |
||
| 17 | |||
| 18 | /** @var callable */ |
||
| 19 | protected $cleanup; |
||
| 20 | |||
| 21 | /** @phpstan-ignore-next-line */ |
||
| 22 | public function __construct(string $uniqid, ?Closure $canceller = null, ?callable $cleanup = null) /** @phpstan-ignore-line */ |
||
| 37 | 4 | } |
|
| 38 | 1 | ||
| 39 | 1 | /** |
|
| 40 | * @return mixed |
||
| 41 | 4 | */ |
|
| 42 | 4 | public function getUniqid() |
|
| 43 | { |
||
| 44 | return $this->uniqid; |
||
| 45 | } |
||
| 46 | |||
| 47 | 4 | public function getDeferred(): Deferred |
|
| 48 | { |
||
| 49 | 4 | return $this->deferred; |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param mixed $value |
||
| 54 | */ |
||
| 55 | 3 | public function resolve($value): void |
|
| 61 | } |
||
| 62 | |||
| 63 | 1 | /** |
|
| 64 | * @param mixed $value |
||
| 65 | 1 | */ |
|
| 66 | 1 | public function reject($value): void |
|
| 72 | } |
||
| 73 | } |
||
| 74 |