@@ -42,6 +42,9 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | |
45 | + /** |
|
46 | + * @param \Transphporm\Template $template |
|
47 | + */ |
|
45 | 48 | public function processRules($template, \Transphporm\Config $config) { |
46 | 49 | $rules = $this->getRules($config->getCssToXpath(), $config->getValueParser()); |
47 | 50 | |
@@ -57,11 +60,20 @@ discard block |
||
57 | 60 | } |
58 | 61 | |
59 | 62 | //Load the TSS |
63 | + |
|
64 | + /** |
|
65 | + * @param \Transphporm\Parser\CssToXpath $cssToXpath |
|
66 | + * @param \Transphporm\Parser\Value $valueParser |
|
67 | + */ |
|
60 | 68 | public function getRules($cssToXpath, $valueParser, $indexStart = 0) { |
61 | 69 | return $this->tss->getRules($cssToXpath, $valueParser, $this, $indexStart); |
62 | 70 | } |
63 | 71 | |
64 | 72 | //Process a TSS rule e.g. `ul li {content: "foo"; format: bar} |
73 | + |
|
74 | + /** |
|
75 | + * @param \Transphporm\Config $config |
|
76 | + */ |
|
65 | 77 | private function executeTssRule($rule, $template, $config) { |
66 | 78 | $rule->touch(); |
67 | 79 |
@@ -12,6 +12,10 @@ |
||
12 | 12 | private $cache; |
13 | 13 | private $time; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $fileName |
|
17 | + * @param \Transphporm\Cache $cache |
|
18 | + */ |
|
15 | 19 | public function __construct($fileName, \Transphporm\FilePath $filePath, $cache, $time) { |
16 | 20 | $this->fileName = $fileName; |
17 | 21 | $this->filePath = $filePath; |
@@ -9,6 +9,9 @@ discard block |
||
9 | 9 | private $str; |
10 | 10 | private $filePath; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $str |
|
14 | + */ |
|
12 | 15 | public function __construct($str, $filePath) { |
13 | 16 | $this->str = $str; |
14 | 17 | $this->filePath = $filePath; |
@@ -22,6 +25,11 @@ discard block |
||
22 | 25 | return ''; |
23 | 26 | } |
24 | 27 | |
28 | + /** |
|
29 | + * @param \Transphporm\Parser\CssToXpath $cssToXpath |
|
30 | + * @param \Transphporm\Parser\Value $valueParser |
|
31 | + * @param SheetLoader $sheetLoader |
|
32 | + */ |
|
25 | 33 | public function getRules($cssToXpath, $valueParser, $sheetLoader, $indexStart) { |
26 | 34 | return (new \Transphporm\Parser\Sheet($this->str, $cssToXpath, $valueParser, $this->filePath, $sheetLoader))->parse($indexStart); |
27 | 35 | } |