Total Complexity | 7 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class MixedCaseMap 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 |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * {@inheritDoc} |
||
46 | */ |
||
47 | 1 | public function getLengths(): array |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | 7 | public function code(string $string): array |
|
68 |