@@ -118,6 +118,7 @@ |
||
118 | 118 | * @param string $namespaceAlias The preferred namespace alias for a given XML namespace URI. Should be the result |
119 | 119 | * of a call to `SimplePie\Util\Ns`. |
120 | 120 | * @param DOMXPath $xpath The `DOMXPath` object with this middleware's namespace alias applied. |
121 | + * @return void |
|
121 | 122 | */ |
122 | 123 | public function invoke( |
123 | 124 | string $feedType, |
@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | * mixed-case/case-insensitive XML element names. |
39 | 39 | * @param string ...$path A variadic parameter which accepts the names of the XML |
40 | 40 | * tree nodes in sequence. |
41 | + * @param string[] $path |
|
41 | 42 | * |
42 | 43 | * @return string An XPath 1.0 expression. |
43 | 44 | * |
@@ -74,7 +75,7 @@ discard block |
||
74 | 75 | * |
75 | 76 | * @param callable $fn A callable which returns a `DOMElementList`. |
76 | 77 | * |
77 | - * @return array Returns an array with keys of `text` and `html`. |
|
78 | + * @return Node Returns an array with keys of `text` and `html`. |
|
78 | 79 | */ |
79 | 80 | public function handleSingleNode(callable $fn): Node |
80 | 81 | { |
@@ -26,6 +26,7 @@ |
||
26 | 26 | * @param string $namespaceAlias The preferred namespace alias for a given XML namespace URI. Should be the result |
27 | 27 | * of a call to `SimplePie\Util\Ns`. |
28 | 28 | * @param DOMXPath $xpath The `DOMXPath` object with this middleware's namespace alias applied. |
29 | + * @return void |
|
29 | 30 | */ |
30 | 31 | public function __invoke(stdClass $feedRoot, string $namespaceAlias, DOMXPath $xpath): void; |
31 | 32 | } |
@@ -14,5 +14,8 @@ |
||
14 | 14 | |
15 | 15 | interface SetLoggerInterface |
16 | 16 | { |
17 | + /** |
|
18 | + * @return \SimplePie\Mixin\LoggerTrait |
|
19 | + */ |
|
17 | 20 | public function setLogger(LoggerInterface $logger); |
18 | 21 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @param int $libxml |
74 | 74 | * |
75 | - * @return int |
|
75 | + * @return SimplePie |
|
76 | 76 | */ |
77 | 77 | public function setLibxml(int $libxml) |
78 | 78 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param StreamInterface $stream A PSR-7 `StreamInterface` which is typically returned by the |
160 | 160 | * `getBody()` method of a `ResponseInterface` class. |
161 | 161 | * |
162 | - * @return JsonParser |
|
162 | + * @return string |
|
163 | 163 | */ |
164 | 164 | public function parseJson(StreamInterface $stream) |
165 | 165 | { |