Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
16 | class Boolean implements ValueFormatter |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $true; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $false; |
||
27 | |||
28 | public function __construct(string $true, string $false) |
||
29 | { |
||
30 | $this->true = $true; |
||
31 | $this->false = $false; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param mixed $value |
||
36 | * @return mixed|string |
||
37 | */ |
||
38 | public function format($value) |
||
45 | } |
||
46 | } |
||
47 |