1 | <?php |
||
19 | class Range |
||
20 | { |
||
21 | /** |
||
22 | * Explode the selector to get ranges. |
||
23 | * |
||
24 | * @param $selector |
||
25 | * |
||
26 | * @return Collection |
||
27 | */ |
||
28 | 23 | protected function getRanges($selector) |
|
54 | |||
55 | /** |
||
56 | * @param Collection $parameters |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | 25 | public function supports(Collection $parameters) |
|
73 | |||
74 | /** |
||
75 | * @param Collection $parameters |
||
76 | * @param Collection $collection |
||
77 | */ |
||
78 | 23 | public function convert(Collection $parameters, Collection $collection) |
|
104 | |||
105 | /** |
||
106 | * @param $string |
||
107 | * |
||
108 | * @return bool|int |
||
109 | */ |
||
110 | 23 | protected function dotDotSeparator($string) |
|
114 | |||
115 | /** |
||
116 | * @param $string |
||
117 | * |
||
118 | * @return bool|int |
||
119 | */ |
||
120 | 20 | protected function columnSeparator($string) |
|
124 | |||
125 | /** |
||
126 | * @param $string |
||
127 | * |
||
128 | * @return bool|int |
||
129 | */ |
||
130 | 14 | protected function dashSeparator($string) |
|
134 | |||
135 | /** |
||
136 | * @param $string |
||
137 | * |
||
138 | * @return bool|int |
||
139 | */ |
||
140 | 11 | protected function commaSeparator($string) |
|
144 | } |
||
145 |