1 | <?php |
||
8 | class Deferred implements DeferredInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var PromiseInterface|null |
||
12 | */ |
||
13 | protected $promise; |
||
14 | |||
15 | /** |
||
16 | * @var callable |
||
17 | */ |
||
18 | protected $resolveCallback; |
||
19 | |||
20 | /** |
||
21 | * @var callable |
||
22 | */ |
||
23 | protected $rejectCallback; |
||
24 | |||
25 | /** |
||
26 | * @var callable |
||
27 | */ |
||
28 | protected $cancelCallback; |
||
29 | |||
30 | /** |
||
31 | * @var callable|null |
||
32 | */ |
||
33 | protected $canceller; |
||
34 | |||
35 | /** |
||
36 | * @param callable $canceller |
||
37 | */ |
||
38 | 167 | public function __construct($canceller = null) |
|
46 | |||
47 | /** |
||
48 | * |
||
49 | */ |
||
50 | 167 | public function __destruct() |
|
58 | |||
59 | /** |
||
60 | * @override |
||
61 | * @inheritDoc |
||
62 | */ |
||
63 | 167 | public function getPromise() |
|
76 | |||
77 | /** |
||
78 | * @override |
||
79 | * @inheritDoc |
||
80 | */ |
||
81 | 52 | public function resolve($value = null) |
|
87 | |||
88 | /** |
||
89 | * @override |
||
90 | * @inheritDoc |
||
91 | */ |
||
92 | 50 | public function reject($reason = null) |
|
98 | |||
99 | /** |
||
100 | * @override |
||
101 | * @inheritDoc |
||
102 | */ |
||
103 | 41 | public function cancel($reason = null) |
|
109 | } |
||
110 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.