boka3/include/Result.php
Erik Thuning 692c2e0aeb Broke all classes into separate files and activated class autoloading.
All free functions are now in functions.php
2019-06-11 17:05:48 +02:00

19 lines
358 B
PHP

<?php
class Result {
private $type = '';
private $message = '';
public function __construct($type, $message) {
$this->type = $type;
$this->message = $message;
}
public function toJson() {
return json_encode(array(
'type' => $this->type,
'message' => $this->message
));
}
}
?>