| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class Capitalizer implements Formatter |
||
| 12 | { |
||
| 13 | use Chaining; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Coder Lower case coder. |
||
| 17 | */ |
||
| 18 | private $lowerCaseCoder; |
||
| 19 | |||
| 20 | 5 | public function __construct() |
|
| 21 | { |
||
| 22 | 5 | $this->lowerCaseCoder = new Coder(new LowerCaseMap()); |
|
| 23 | 5 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param CharTree $charTree Character tree to format. |
||
| 27 | * @return CharTree Capitalized variant of the character tree. |
||
| 28 | */ |
||
| 29 | 5 | protected function applyCurrent(CharTree $charTree): CharTree |
|
| 39 | } |
||
| 40 | } |
||
| 41 |