2017-01-13 19:50:35 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class APIKey extends DataStore {
|
|
|
|
const TABLE = 'apikey';
|
|
|
|
|
|
|
|
public static function getProps() {
|
|
|
|
return [
|
|
|
|
'name',
|
2017-01-13 21:06:49 +01:00
|
|
|
'token'
|
2017-01-13 19:50:35 +01:00
|
|
|
];
|
|
|
|
}
|
2017-01-15 05:36:04 +01:00
|
|
|
|
2017-01-13 19:50:35 +01:00
|
|
|
public function toArray() {
|
|
|
|
return [
|
|
|
|
'name' => $this->name,
|
2017-01-13 21:06:49 +01:00
|
|
|
'token' => $this->token
|
2017-01-13 19:50:35 +01:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|