@@ -11,6 +11,10 @@ discard block |
||
11 | 11 | private $data; |
12 | 12 | private $baseDir; |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $baseDir |
|
16 | + * @param string $tss |
|
17 | + */ |
|
14 | 18 | public function __construct(\SplObjectStorage $objectStorage, $data, $baseDir, $tss) { |
15 | 19 | $this->dataStorage = $objectStorage; |
16 | 20 | $this->data = $data; |
@@ -79,6 +83,9 @@ discard block |
||
79 | 83 | return $obj; |
80 | 84 | } |
81 | 85 | |
86 | + /** |
|
87 | + * @param \Transphporm\Parser\Value $valueParser |
|
88 | + */ |
|
82 | 89 | private function traverseObj($part, $obj, $valueParser, $element) { |
83 | 90 | if (strpos($part, '(') !== false) { |
84 | 91 | $subObjParser = new \Transphporm\Parser\Value($obj, $valueParser, false); |
@@ -143,6 +150,9 @@ discard block |
||
143 | 150 | return $result; |
144 | 151 | } |
145 | 152 | |
153 | + /** |
|
154 | + * @param string $templateFile |
|
155 | + */ |
|
146 | 156 | private function createDummyTemplateDoc(\DomElement $element, $templateFile) { |
147 | 157 | $newDocument = new \DomDocument; |
148 | 158 | $root = $newDocument->createElement('template'); |
@@ -164,6 +174,9 @@ discard block |
||
164 | 174 | return $newDocument; |
165 | 175 | } |
166 | 176 | |
177 | + /** |
|
178 | + * @param \DOMNode $baseElement |
|
179 | + */ |
|
167 | 180 | private function loadTemplate($baseElement, $templateFile) { |
168 | 181 | $baseElement->setAttribute('transphpormbaselement', 'true'); |
169 | 182 | //Load the template XML |