@@ -8,11 +8,18 @@ |
||
8 | 8 | |
9 | 9 | class ExceptionThrowingXMLReader extends XMLReader |
10 | 10 | { |
11 | + /** |
|
12 | + * @param string $encoding |
|
13 | + */ |
|
11 | 14 | public function open($URI, $encoding = null, $options = 0) |
12 | 15 | { |
13 | 16 | return static::ensureSuccess(parent::open($URI, $encoding, $options), 'open'); |
14 | 17 | } |
15 | 18 | |
19 | + /** |
|
20 | + * @param boolean $returnValue |
|
21 | + * @param string $operation |
|
22 | + */ |
|
16 | 23 | static protected function ensureSuccess($returnValue, $operation) |
17 | 24 | { |
18 | 25 | if(! $returnValue) { |
@@ -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; |