@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | private $prefix; |
13 | 13 | private $valueParser; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $tss |
|
17 | + */ |
|
15 | 18 | public function __construct($tss, $baseDir, Value $valueParser, $prefix = '') { |
16 | 19 | $this->tss = $this->stripComments($tss); |
17 | 20 | $this->baseDir = $baseDir; |
@@ -37,6 +40,10 @@ discard block |
||
37 | 40 | return $rules; |
38 | 41 | } |
39 | 42 | |
43 | + /** |
|
44 | + * @param string $selector |
|
45 | + * @param integer $index |
|
46 | + */ |
|
40 | 47 | private function CssToRules($selector, $index, $properties) { |
41 | 48 | $parts = explode(',', $selector); |
42 | 49 | $rules = []; |
@@ -59,6 +66,11 @@ discard block |
||
59 | 66 | return $rules; |
60 | 67 | } |
61 | 68 | |
69 | + /** |
|
70 | + * @param integer $pos |
|
71 | + * @param integer $next |
|
72 | + * @param integer $indexStart |
|
73 | + */ |
|
62 | 74 | private function processingInstructions($tss, $pos, $next, $indexStart) { |
63 | 75 | $rules = []; |
64 | 76 | while (($atPos = strpos($tss, '@', $pos)) !== false) { |
@@ -99,6 +111,9 @@ discard block |
||
99 | 111 | return $str; |
100 | 112 | } |
101 | 113 | |
114 | + /** |
|
115 | + * @param string $str |
|
116 | + */ |
|
102 | 117 | private function getProperties($str) { |
103 | 118 | $stringExtractor = new StringExtractor($str); |
104 | 119 | $rules = explode(';', $stringExtractor); |