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