@@ -15,6 +15,9 @@ discard block |
||
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 |
||
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 | |
@@ -113,6 +119,11 @@ discard block |
||
113 | 119 | } |
114 | 120 | |
115 | 121 | //Load the TSS |
122 | + |
|
123 | + /** |
|
124 | + * @param Parser\CssToXpath $cssToXpath |
|
125 | + * @param Parser\Value $valueParser |
|
126 | + */ |
|
116 | 127 | public function getRules($tss, $cssToXpath, $valueParser, $indexStart = 0) { |
117 | 128 | if (is_file($tss)) { |
118 | 129 | //$rules = $this->cache->load($tss); |
@@ -124,6 +135,10 @@ discard block |
||
124 | 135 | return $tss == null ? [] : (new Parser\Sheet($tss, $cssToXpath, $valueParser, $this->filePath, $this))->parse($indexStart); |
125 | 136 | } |
126 | 137 | //Process a TSS rule e.g. `ul li {content: "foo"; format: bar} |
138 | + |
|
139 | + /** |
|
140 | + * @param Config $config |
|
141 | + */ |
|
127 | 142 | private function executeTssRule($rule, $template, $config) { |
128 | 143 | $rule->touch(); |
129 | 144 |