Completed
Pull Request — master (#64)
by Tom
02:17
created
src/Hook/DataFunction.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -11,6 +11,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
@@ -97,6 +104,9 @@  discard block
 block discarded – undo
97 104
 		return $element->getAttribute(trim($val[0]));
98 105
 	}
99 106
 
107
+	/**
108
+	 * @param \DOMDocument $doc
109
+	 */
100 110
 	private function templateSubsection($css, $doc) {
101 111
 		$xpathStr = (new \Transphporm\Parser\CssToXpath($css, new \Transphporm\Parser\Value($this)))->getXpath();
102 112
 		$xpath = new \DomXpath($doc);
@@ -143,6 +153,9 @@  discard block
 block discarded – undo
143 153
 		return $result;
144 154
 	}
145 155
 
156
+	/**
157
+	 * @param string $templateFile
158
+	 */
146 159
 	private function createDummyTemplateDoc(\DomElement $element, $templateFile, $subSection = null) {		
147 160
 		$newDocument = new \DomDocument;
148 161
 		$root = $newDocument->createElement('template');
@@ -164,6 +177,9 @@  discard block
 block discarded – undo
164 177
 		return $newDocument;
165 178
 	}
166 179
 
180
+	/**
181
+	 * @param \DOMNode $baseElement
182
+	 */
167 183
 	private function loadTemplate($baseElement, $templateFile, $subSection) {
168 184
 		$baseElement->setAttribute('transphpormbaselement', 'true');
169 185
 		//Load the template XML
Please login to merge, or discard this patch.