mirror of
https://github.com/opensupports/opensupports.git
synced 2025-09-27 03:49:09 +02:00
19 lines
323 B
PHP
19 lines
323 B
PHP
<?php
|
|
|
|
class APIKey extends DataStore {
|
|
const TABLE = 'apikey';
|
|
|
|
public static function getProps() {
|
|
return [
|
|
'name',
|
|
'token'
|
|
];
|
|
}
|
|
|
|
public function toArray() {
|
|
return [
|
|
'name' => $this->name,
|
|
'token' => $this->token
|
|
];
|
|
}
|
|
} |