@@ -93,7 +93,7 @@ |
||
93 | 93 | * Find nodes that have processing instructions |
94 | 94 | * |
95 | 95 | * @param array|object $target |
96 | - * @return array|object |
|
96 | + * @return Node[] |
|
97 | 97 | */ |
98 | 98 | public function findNodes(&$target) |
99 | 99 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public function __construct($source) |
46 | 46 | { |
47 | 47 | if (!is_object($source)) { |
48 | - throw new \Exception("Data enricher on works on an object, not on a " . gettype($source)); |
|
48 | + throw new \Exception("Data enricher on works on an object, not on a ".gettype($source)); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | $this->source = $source; |
@@ -14,6 +14,7 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @param DataEnricher $invoker |
16 | 16 | * @param string $property Property key which should trigger the processor |
17 | + * @return void |
|
17 | 18 | */ |
18 | 19 | public function __construct(DataEnricher $invoker, $property); |
19 | 20 | |
@@ -28,6 +29,7 @@ discard block |
||
28 | 29 | * Apply processing to nodes |
29 | 30 | * |
30 | 31 | * @param Node[] $nodes |
32 | + * @return void |
|
31 | 33 | */ |
32 | 34 | public function applyTo(array $nodes); |
33 | 35 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * Do async requests for each node |
61 | 61 | * |
62 | 62 | * @param Node[] $nodes |
63 | - * @return \SplObjectStorage|Promise\PromiseInterface[] |
|
63 | + * @return \SplObjectStorage |
|
64 | 64 | */ |
65 | 65 | protected function request($nodes) |
66 | 66 | { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | /** |
81 | 81 | * Apply results to nodes |
82 | 82 | * |
83 | - * @param \SplObjectStorage|Promise\PromiseInterface[] $promises |
|
83 | + * @param \SplObjectStorage $promises |
|
84 | 84 | */ |
85 | 85 | protected function applyResults($promises) |
86 | 86 | { |