| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class StringParser |
||
| 6 | { |
||
| 7 | 6 | public function numberOfTokens(string $string) |
|
| 10 | } |
||
| 11 | |||
| 12 | 9 | private function exploded(string $string) |
|
| 13 | { |
||
| 14 | 9 | return explode('_', $string); |
|
| 15 | } |
||
| 16 | |||
| 17 | 6 | public function tokenize(string $string, int $position) |
|
| 18 | { |
||
| 19 | 6 | return $this->exploded($string)[$position]; |
|
| 20 | } |
||
| 21 | |||
| 22 | 3 | public function camelize($string) |
|
| 31 | } |
||
| 32 | } |
||
| 33 |