From ea8c49a49b7e39eba9f8314dcf5a5ca8023200db Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 31 Jan 2022 14:42:17 +0100 Subject: [PATCH] initial commit Signed-off-by: tracer --- src/Entity/Panel.php | 108 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 src/Entity/Panel.php diff --git a/src/Entity/Panel.php b/src/Entity/Panel.php new file mode 100644 index 0000000..adee65e --- /dev/null +++ b/src/Entity/Panel.php @@ -0,0 +1,108 @@ +id = $id; + $this->name = $name; + $this->a = $a; + $this->aaaa = $aaaa; + $this->apikey = $apikey; + } + + + /** + * @return String + */ + public function getA(): string + { + return $this->a ?? 'na'; + } + + /** + * @return String + */ + public function getAaaa(): string + { + return $this->aaaa == 'na'; + } + + /** + * @return String + */ + public function getApikey(): string + { + return $this->apikey; + } + + /** + * @return int + */ + public function getId(): int + { + return $this->id; + } + + /** + * @param int $id + */ + public function setId(int $id): void + { + $this->id = $id; + } + + /** + * @return String + */ + public function getName(): string + { + return $this->name; + } + + + /** + * @param String $apikey + */ + public function setApikey(string $apikey): void + { + $this->apikey = $apikey; + } + + + /** + * @param String $name + */ + public function setName(string $name): void + { + $this->name = $name; + } + + /** + * @param String $a + */ + public function setA(string $a): void + { + $this->a = $a; + } + + /** + * @param String $aaaa + */ + public function setAaaa(string $aaaa): void + { + $this->aaaa = $aaaa; + } + +} \ No newline at end of file