Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class LowerCaseMap implements CodeMap |
||
13 | { |
||
14 | /** |
||
15 | * @var Truncator Formatter for extracting the first character. |
||
16 | */ |
||
17 | private $charExtractor; |
||
18 | |||
19 | 11 | public function __construct() |
|
20 | { |
||
21 | 11 | $this->charExtractor = new Truncator(1); |
|
22 | 11 | $this->charExtractor->setNext(new LengthFilter(1, 1)); |
|
23 | 11 | } |
|
24 | |||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | 3 | public function getMap(CharTree $charTree): array |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | */ |
||
40 | 1 | public function getLengths(): array |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | 7 | public function code(string $string): array |
|
53 |