Completed
Push — master ( c42a51...da7c37 )
by Tom
01:57
created
src/SheetLoader.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
     private $rules;
16 16
     private $cacheName;
17 17
 
18
+    /**
19
+     * @param string $tss
20
+     */
18 21
     public function __construct(Cache $cache, FilePath $filePath, $tss, $time) {
19 22
     	$this->cache = $cache;
20 23
         $this->filePath = $filePath;
@@ -99,6 +102,9 @@  discard block
 block discarded – undo
99 102
 		return $rules;
100 103
     }
101 104
 
105
+	/**
106
+	 * @param Template $template
107
+	 */
102 108
 	public function processRules($template, \Transphporm\Config $config) {
103 109
 		$rules = $this->getRules($this->tss, $config->getCssToXpath(), $config->getValueParser());
104 110
 
@@ -111,6 +117,11 @@  discard block
 block discarded – undo
111 117
 	}
112 118
 
113 119
 	//Load the TSS
120
+
121
+	/**
122
+	 * @param Parser\CssToXpath $cssToXpath
123
+	 * @param Parser\Value $valueParser
124
+	 */
114 125
 	public function getRules($tss, $cssToXpath, $valueParser) {
115 126
 		if (is_file($tss)) {
116 127
     		//$rules = $this->cache->load($tss);
@@ -122,6 +133,10 @@  discard block
 block discarded – undo
122 133
 		return $tss == null ? [] : (new Parser\Sheet($tss, $cssToXpath, $valueParser, $this->filePath, $this))->parse();
123 134
 	}
124 135
 	//Process a TSS rule e.g. `ul li {content: "foo"; format: bar}
136
+
137
+	/**
138
+	 * @param Config $config
139
+	 */
125 140
 	private function executeTssRule($rule, $template, $config) {
126 141
 		$rule->touch();
127 142
 
Please login to merge, or discard this patch.