@@ -23,6 +23,9 @@ |
||
23 | 23 | return new static; |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param \Closure $handler |
|
28 | + */ |
|
26 | 29 | public function store($handler, $value = []) |
27 | 30 | { |
28 | 31 | if ($handler instanceof \Closure) { |
@@ -52,6 +52,9 @@ discard block |
||
52 | 52 | $this->trigger($value); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param \Exception $reason |
|
57 | + */ |
|
55 | 58 | public function reject($reason) |
56 | 59 | { |
57 | 60 | $this->setState(self::STATE_REJECTED); |
@@ -110,6 +113,9 @@ discard block |
||
110 | 113 | } |
111 | 114 | } |
112 | 115 | |
116 | + /** |
|
117 | + * @param integer $index |
|
118 | + */ |
|
113 | 119 | private static function invokeContext($context, $index, $value) |
114 | 120 | { |
115 | 121 | $promise = $context[0]; |
@@ -131,6 +137,9 @@ discard block |
||
131 | 137 | } |
132 | 138 | } |
133 | 139 | |
140 | + /** |
|
141 | + * @param integer $state |
|
142 | + */ |
|
134 | 143 | private function setState($state) |
135 | 144 | { |
136 | 145 | if ($state !== self::STATE_PENDING && |