2017-01-11 08:25:26 +01:00
|
|
|
<?php
|
|
|
|
class Stat extends DataStore {
|
|
|
|
const TABLE = 'stat';
|
|
|
|
|
|
|
|
public static function getProps() {
|
|
|
|
return array (
|
|
|
|
'date',
|
|
|
|
'type',
|
|
|
|
'general',
|
|
|
|
'value'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDefaultProps() {
|
|
|
|
return array();
|
|
|
|
}
|
2017-01-12 06:50:45 +01:00
|
|
|
public function toArray() {
|
|
|
|
return [
|
|
|
|
'date' => $this->date,
|
|
|
|
'type' => $this->type,
|
|
|
|
'general' => $this->general,
|
|
|
|
'value' => $this->value
|
|
|
|
];
|
|
|
|
}
|
2017-01-11 08:25:26 +01:00
|
|
|
}
|