summaryrefslogtreecommitdiffstats
path: root/vendor/gipfl/openrpc/src/Contact.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:44:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:44:51 +0000
commita1ec78bf0dc93d0e05e5f066f1949dc3baecea06 (patch)
treeee596ce1bc9840661386f96f9b8d1f919a106317 /vendor/gipfl/openrpc/src/Contact.php
parentInitial commit. (diff)
downloadicingaweb2-module-incubator-upstream/0.20.0.tar.xz
icingaweb2-module-incubator-upstream/0.20.0.zip
Adding upstream version 0.20.0.upstream/0.20.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gipfl/openrpc/src/Contact.php')
-rw-r--r--vendor/gipfl/openrpc/src/Contact.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/vendor/gipfl/openrpc/src/Contact.php b/vendor/gipfl/openrpc/src/Contact.php
new file mode 100644
index 0000000..e957719
--- /dev/null
+++ b/vendor/gipfl/openrpc/src/Contact.php
@@ -0,0 +1,49 @@
+<?php
+
+namespace gipfl\OpenRpc;
+
+use JsonSerializable;
+
+/**
+ * Contact information for the exposed API
+ */
+class Contact implements JsonSerializable
+{
+ use SimpleJsonSerializer;
+
+ /**
+ * The identifying name of the contact person/organization
+ *
+ * @var string|null
+ */
+ public $name;
+
+ /**
+ * The URL pointing to the contact information. MUST be in the format of a
+ * URL.
+ *
+ * @var string|null
+ */
+ public $url;
+
+ /**
+ * The email address of the contact person/organization. MUST be in the
+ * format of an email address.
+ *
+ * @var string|null
+ */
+ public $email;
+
+ /**
+ * Contact constructor.
+ * @param string|null $name
+ * @param string|null $url
+ * @param string|null $email
+ */
+ public function __construct($name = null, $url = null, $email = null)
+ {
+ $this->name = $name;
+ $this->url = $url;
+ $this->email = $email;
+ }
+}