From 4806fad728116cbd6b440eb285fcbcc867a62b84 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 6 May 2019 00:35:18 +0400 Subject: Did a deep refactoring main class in the plugin Signed-off-by: Valentin Popov --- classes/local/record.php | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 classes/local/record.php (limited to 'classes/local/record.php') diff --git a/classes/local/record.php b/classes/local/record.php new file mode 100644 index 0000000..29dadce --- /dev/null +++ b/classes/local/record.php @@ -0,0 +1,80 @@ +. + +namespace local_webhooks\local; + +defined('MOODLE_INTERNAL') || die(); + +use stdClass; +use function defined; + +/** + * It's a class description record. + * + * @copyright 2019 'Valentin Popov' + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @package local_webhooks\local + */ +final class record extends stdClass { + /** + * List of some events. + * + * @var array|null + */ + public $events; + + /** + * Type of the package. + * + * @var string + */ + public $header; + + /** + * A unique identifier of the service. + * + * @var int|null + */ + public $id; + + /** + * Name of the service. + * + * @var string + */ + public $name; + + /** + * Url's an endpoint to send notifications. + * + * @var string + */ + public $point; + + /** + * Status activity of the service. + * + * @var bool + */ + public $status; + + /** + * Secret key of the service. + * + * @var string + */ + public $token; +} \ No newline at end of file -- cgit v1.2.3