Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 55.56% |
Changes | 0 |
1 | <?php |
||
12 | final class UpperCaseMap implements CodeMap |
||
13 | { |
||
14 | /** |
||
15 | * @var Truncator Formatter for extracting the first character. |
||
16 | */ |
||
17 | private $charExtractor; |
||
18 | |||
19 | public function __construct() |
||
20 | { |
||
21 | $this->charExtractor = new Truncator(1); |
||
22 | $this->charExtractor->setNext(new LengthFilter(1)); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | 3 | public function getMap(CharTree $charTree): array |
|
35 | } |
||
36 | } |
||
37 |