| 1 | <?php |
||
| 14 | class Device extends \Model { |
||
| 15 | |||
| 16 | public static $logging = false; |
||
| 17 | static $cols = [ |
||
|
|
|||
| 18 | 'key' => ['type' => 'text'], |
||
| 19 | 'subscriber_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'subscriber'], |
||
| 20 | 'date_last_check' => ['type' => 'dateTime'], |
||
| 21 | 'date_create' => ['type' => 'dateTime'], |
||
| 22 | ]; |
||
| 23 | |||
| 24 | public static function indexes() { |
||
| 34 | |||
| 35 | public static function relations() { |
||
| 43 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.