| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | final class LeetspeakDecoder extends Coder |
||
| 11 | { |
||
| 12 | use Chaining; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array<CharTree> Memoization of formatted character trees. |
||
| 16 | */ |
||
| 17 | private static $memoization = []; |
||
| 18 | |||
| 19 | 6 | public function __construct() |
|
| 20 | { |
||
| 21 | 6 | parent::__construct(new LeetspeakMap()); |
|
| 22 | 6 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param CharTree $charTree Character tree to format. |
||
| 26 | * @return CharTree Leetspeak decoded variant of the character tree. |
||
| 27 | */ |
||
| 28 | 6 | protected function applyCurrent(CharTree $charTree): CharTree |
|
| 38 | } |
||
| 39 | } |
||
| 40 |