@@ -23,6 +23,9 @@ |
||
23 | 23 | protected $isValid; |
24 | 24 | protected $returnType; |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $returnType |
|
28 | + */ |
|
26 | 29 | public function __construct(ExceptionThrowingXMLReader $reader, $path, $returnType) |
27 | 30 | { |
28 | 31 | $this->reader = $reader; |
@@ -7,11 +7,17 @@ discard block |
||
7 | 7 | |
8 | 8 | class ExceptionThrowingXMLReader extends XMLReader |
9 | 9 | { |
10 | + /** |
|
11 | + * @param string $encoding |
|
12 | + */ |
|
10 | 13 | public function open($URI, $encoding = null, $options = 0) |
11 | 14 | { |
12 | 15 | return static::ensureSuccess(@parent::open($URI, $encoding, $options), 'open'); |
13 | 16 | } |
14 | 17 | |
18 | + /** |
|
19 | + * @param string $operation |
|
20 | + */ |
|
15 | 21 | static protected function ensureSuccess($returnValue, $operation) |
16 | 22 | { |
17 | 23 | if (! $returnValue) { |
@@ -20,6 +26,9 @@ discard block |
||
20 | 26 | return $returnValue; |
21 | 27 | } |
22 | 28 | |
29 | + /** |
|
30 | + * @return DOMNode |
|
31 | + */ |
|
23 | 32 | public function expand(DOMNode $baseNode = null) |
24 | 33 | { |
25 | 34 | if (null === $baseNode) { |