From 88b3c5b35736395adacb2ded2216b23241326968 Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 31 Jan 2022 14:40:47 +0100 Subject: [PATCH] initial commit Signed-off-by: tracer --- src/Entity/Nameserver.php | 108 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 src/Entity/Nameserver.php diff --git a/src/Entity/Nameserver.php b/src/Entity/Nameserver.php new file mode 100644 index 0000000..275e079 --- /dev/null +++ b/src/Entity/Nameserver.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