@@ -85,6 +85,10 @@ |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | //Add a postprocessing hook. This cleans up anything transphporm has added to the markup which needs to be removed |
88 | + |
|
89 | + /** |
|
90 | + * @param Template $template |
|
91 | + */ |
|
88 | 92 | private function doPostProcessing($template) { |
89 | 93 | $template->addHook('//*[@transphporm]', new Hook\PostProcess()); |
90 | 94 | return $template; |
@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | private $time; |
13 | 13 | private $import = []; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $tss |
|
17 | + */ |
|
15 | 18 | public function __construct(Cache $cache, FilePath $filePath, $tss, $time) { |
16 | 19 | $this->cache = $cache; |
17 | 20 | $this->filePath = $filePath; |
@@ -59,6 +62,9 @@ discard block |
||
59 | 62 | return $rules; |
60 | 63 | } |
61 | 64 | |
65 | + /** |
|
66 | + * @param Template $template |
|
67 | + */ |
|
62 | 68 | public function processRules($template, \Transphporm\Config $config) { |
63 | 69 | $rules = $this->getRules($this->tss, $config->getCssToXpath(), $config->getValueParser()); |
64 | 70 | |
@@ -72,6 +78,11 @@ discard block |
||
72 | 78 | } |
73 | 79 | |
74 | 80 | //Load the TSS |
81 | + |
|
82 | + /** |
|
83 | + * @param Parser\CssToXpath $cssToXpath |
|
84 | + * @param Parser\Value $valueParser |
|
85 | + */ |
|
75 | 86 | public function getRules($tss, $cssToXpath, $valueParser) { |
76 | 87 | if (is_file($tss)) { |
77 | 88 | //$rules = $this->cache->load($tss); |
@@ -84,6 +95,10 @@ discard block |
||
84 | 95 | } |
85 | 96 | |
86 | 97 | //Process a TSS rule e.g. `ul li {content: "foo"; format: bar} |
98 | + |
|
99 | + /** |
|
100 | + * @param Config $config |
|
101 | + */ |
|
87 | 102 | private function executeTssRule($rule, $template, $config) { |
88 | 103 | $rule->touch(); |
89 | 104 |