@@ -15,6 +15,9 @@ |
||
| 15 | 15 | return $this->loadString(file_get_contents($file)); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param resource $stream |
|
| 20 | + */ |
|
| 18 | 21 | public function loadStream($stream) : Element |
| 19 | 22 | { |
| 20 | 23 | Assert::resource($stream); |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | return sprintf($path, $options['context']); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @return Element |
|
| 45 | + */ |
|
| 43 | 46 | protected function getSearchElement(Element $element, $options) |
| 44 | 47 | { |
| 45 | 48 | if (!isset($options['context']) || !$options['context'] instanceof Element) { |