1 | <?php |
||
12 | class BooleanField extends DataField |
||
13 | { |
||
14 | |||
15 | protected $cast = 'string'; |
||
16 | |||
17 | /** |
||
18 | * TODO need to set the truthiness of this thing - true == TRUE == True == 1 |
||
19 | * (non-PHPdoc) |
||
20 | * |
||
21 | * @see \Solvire\API\Serializers\DataFields\DataField::setData() |
||
22 | */ |
||
23 | 1 | public function setData($data) |
|
39 | |||
40 | /** |
||
41 | * This is a Boolean so it will always be just a boolean |
||
42 | * TODO get the truthiness of this data |
||
43 | * |
||
44 | * @return boolean |
||
45 | */ |
||
46 | 1 | public function getData() |
|
50 | } |