opensupports/server/models/CustomResponse.php
Guillermo Giuliana e15bd15f07
Updates to 4.10.0 (#1061)
* change 4.9 to 4.10

* new translations
2021-10-18 22:06:20 -03:00

31 lines
787 B
PHP
Executable File

<?php
/**
* @api {OBJECT} CustomResponse CustomResponse
* @apiVersion 4.10.0
* @apiGroup Data Structures
* @apiParam {Number} id Id of the custom response.
* @apiParam {String} content Content of the custom response.
* @apiParam {String} name Name of the custom response.
* @apiParam {String} language Language of the custom response.
*/
class CustomResponse extends DataStore {
const TABLE = 'customresponse';
public static function getProps() {
return [
'name',
'language',
'content'
];
}
public function toArray() {
return [
'id' => $this->id,
'name' => $this->name,
'language' => $this->language,
'content' => $this->content,
];
}
}