692c2e0aeb
All free functions are now in functions.php
19 lines
358 B
PHP
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
|
|
));
|
|
}
|
|
}
|
|
?>
|