From 6615c1a38241d17af1a9937a55df77881cf1abc5 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 27 Mar 2025 21:02:25 +1300 Subject: [PATCH] Add SDK parameter class --- src/Appwrite/SDK/Parameter.php | 75 ++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 src/Appwrite/SDK/Parameter.php diff --git a/src/Appwrite/SDK/Parameter.php b/src/Appwrite/SDK/Parameter.php new file mode 100644 index 0000000000..2a0e463733 --- /dev/null +++ b/src/Appwrite/SDK/Parameter.php @@ -0,0 +1,75 @@ +name; + } + + public function setName(string $name): void + { + $this->name = $name; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): void + { + $this->description = $description; + } + + public function getDefault(): mixed + { + return $this->default; + } + + public function setDefault(mixed $default): void + { + $this->default = $default; + } + + public function getValidator(): mixed + { + return $this->validator; + } + + public function setValidator(mixed $validator): void + { + $this->validator = $validator; + } + + public function isOptional(): bool + { + return $this->optional; + } + + public function setOptional(bool $optional): void + { + $this->optional = $optional; + } +} \ No newline at end of file