From 93142c97442ea049c9c0eec58a575cccb56b03d0 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 1 Feb 2022 20:39:23 +0100 Subject: [PATCH] added strict, OA schema Signed-off-by: tracer --- src/Entity/Nameserver.php | 61 ++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/src/Entity/Nameserver.php b/src/Entity/Nameserver.php index 93038d4..988aeec 100644 --- a/src/Entity/Nameserver.php +++ b/src/Entity/Nameserver.php @@ -1,10 +1,14 @@ -a; } + /** + * @param String $a + */ + public function setA(string $a): void + { + $this->a = $a; + } + /** * @return String */ + #[OAT\Property(type: 'string')] public function getAaaa(): string { return $this->aaaa; } + /** + * @param String $aaaa + */ + public function setAaaa(string $aaaa): void + { + $this->aaaa = $aaaa; + } + /** * @return String */ + #[OAT\Property(type: 'string')] public function getApikey(): string { return $this->apikey; } + /** + * @param String $apikey + */ + public function setApikey(string $apikey): void + { + $this->apikey = $apikey; + } + /** * @return int */ + #[OAT\Property(type: 'int')] public function getId(): int { return $this->id; @@ -66,21 +98,12 @@ class Nameserver /** * @return String */ + #[OAT\Property(type: 'string')] public function getName(): string { return $this->name; } - - /** - * @param String $apikey - */ - public function setApikey(string $apikey): void - { - $this->apikey = $apikey; - } - - /** * @param String $name */ @@ -89,20 +112,4 @@ class Nameserver $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