| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class LeetspeakDecoder implements Formatter |
||
| 12 | { |
||
| 13 | use Chaining; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Coder Leetspeak coder. |
||
| 17 | */ |
||
| 18 | private $leetspeakCoder; |
||
| 19 | |||
| 20 | 4 | public function __construct() |
|
| 21 | { |
||
| 22 | 4 | $this->leetspeakCoder = new Coder(new LeetspeakMap()); |
|
| 23 | 4 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param CharTree $charTree Character tree to format. |
||
| 27 | * @return CharTree Leetspeak decoded variant of the character tree. |
||
| 28 | */ |
||
| 29 | 4 | protected function applyCurrent(CharTree $charTree): CharTree |
|
| 32 | } |
||
| 33 | } |
||
| 34 |