From 654eade42b8a088a08f2de4111aa2abfda6c7f45 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 5 May 2019 23:27:48 +0400 Subject: Added description record's class Signed-off-by: Valentin Popov --- classes/record.php | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 classes/record.php (limited to 'classes/record.php') diff --git a/classes/record.php b/classes/record.php new file mode 100644 index 0000000..238fd2c --- /dev/null +++ b/classes/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\local_webhooks_record + */ +final class local_webhooks_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