1 | <?php |
||
11 | class Base extends AbstractFormatterProvider |
||
12 | { |
||
13 | public $booleanFormat = ['No', 'Yes']; |
||
14 | |||
15 | /** |
||
16 | * Handle the raw content |
||
17 | * |
||
18 | * @param mixed $value |
||
19 | * @return mixed |
||
20 | */ |
||
21 | 4 | public function asRaw($value) |
|
28 | |||
29 | /** |
||
30 | * As text |
||
31 | * |
||
32 | * @param mixed $value |
||
33 | * @return string |
||
34 | */ |
||
35 | 3 | public function asText($value) |
|
43 | |||
44 | /** |
||
45 | * Format the value using the boolean values |
||
46 | * |
||
47 | * @param mixed $value |
||
48 | * @return string |
||
49 | */ |
||
50 | 8 | public function asBoolean($value) |
|
57 | } |
||
58 |