opensupports/server/models/CustomResponse.php
Guillermo Giuliana 6a34c24d7d
update script and change 4.6 to 4.7 (#809)
* update script and change 4.6 to 4.7

* fix 4.7.0 script
2020-06-16 21:26:04 -03:00

31 lines
786 B
PHP
Executable File

<?php
/**
* @api {OBJECT} CustomResponse CustomResponse
* @apiVersion 4.7.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,
];
}
}