25 lines
512 B
PHP
25 lines
512 B
PHP
<?php
|
|
class Stat extends DataStore {
|
|
const TABLE = 'stat';
|
|
|
|
public static function getProps() {
|
|
return array (
|
|
'date',
|
|
'type',
|
|
'general',
|
|
'value'
|
|
);
|
|
}
|
|
|
|
public function getDefaultProps() {
|
|
return array();
|
|
}
|
|
public function toArray() {
|
|
return [
|
|
'date' => $this->date,
|
|
'type' => $this->type,
|
|
'general' => $this->general,
|
|
'value' => $this->value
|
|
];
|
|
}
|
|
} |