opensupports/server/models/APIKey.php

19 lines
323 B
PHP
Raw Normal View History

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