summaryrefslogtreecommitdiff
path: root/classes/event/response_get.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-27 11:41:48 +0300
committerValentin Popov <info@valentineus.link>2017-10-27 11:41:48 +0300
commit700833b5321904c14bda4d3bcdcc627a7e3d4ccf (patch)
tree70d036b5a28b68c4f7e0db465cf43bbffa12c7ab /classes/event/response_get.php
parent31ecf15e9543aed0e1b7946354735c77886e2b68 (diff)
downloadlocal_webhooks-700833b5321904c14bda4d3bcdcc627a7e3d4ccf.tar.xz
local_webhooks-700833b5321904c14bda4d3bcdcc627a7e3d4ccf.zip
Simplification of the class
Diffstat (limited to 'classes/event/response_get.php')
-rw-r--r--classes/event/response_get.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/classes/event/response_get.php b/classes/event/response_get.php
index ac18b1c..d1bbf8b 100644
--- a/classes/event/response_get.php
+++ b/classes/event/response_get.php
@@ -35,8 +35,6 @@ defined("MOODLE_INTERNAL") || die();
class response_get extends \core\event\base {
/**
* Init method.
- *
- * @return void
*/
protected function init() {
$this->data["crud"] = "u";
@@ -46,8 +44,6 @@ class response_get extends \core\event\base {
/**
* Return localised event name.
- *
- * @return string
*/
public static function get_name() {
return new \lang_string("answer", "moodle");
@@ -55,18 +51,13 @@ class response_get extends \core\event\base {
/**
* Returns description of what happened.
- *
- * @return string
*/
public function get_description() {
- $status = $this->other["status"];
- return "The servers answer is \"$status\".";
+ return $this->other["status"];
}
/**
* Get URL related to the action.
- *
- * @return \moodle_url
*/
public function get_url() {
return new \moodle_url("/local/webhooks/editservice.php", array("serviceid" => $this->objectid));