| 1 | <?php |
||
| 8 | class BooleanType implements Type |
||
| 9 | { |
||
| 10 | protected $boolean_literals = [ |
||
| 11 | 't' => true, |
||
| 12 | 'true' => true, |
||
| 13 | 'y' => true, |
||
| 14 | 'yes' => true, |
||
| 15 | 'on' => true, |
||
| 16 | '1' => true, |
||
| 17 | 'f' => false, |
||
| 18 | 'false' => false, |
||
| 19 | 'n' => false, |
||
| 20 | 'no' => false, |
||
| 21 | 'off' => false, |
||
| 22 | '0' => false, |
||
| 23 | ]; |
||
| 24 | |||
| 25 | public function convertToSQL($value) |
||
| 33 | |||
| 34 | public function convertToPHP($value) |
||
| 54 | } |
||
| 55 |