From b77e7bf34847a1592b9adf7d0ebd16c872bc7ae9 Mon Sep 17 00:00:00 2001 From: tracer Date: Sat, 17 Sep 2022 16:28:51 +0200 Subject: [PATCH] added password property --- src/Entity/DynDNS.php | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/Entity/DynDNS.php b/src/Entity/DynDNS.php index b76cb98..bf0aea9 100644 --- a/src/Entity/DynDNS.php +++ b/src/Entity/DynDNS.php @@ -11,10 +11,26 @@ class DynDNS /** */ - public function __construct(private string $name, private string $a, private string $aaaa, private int $id = 0) + public function __construct(private string $name, private string $a, private string $aaaa, private $password = '', private int $id = 0) { } + /** + * @return string + */ + public function getPassword(): string + { + return $this->password; + } + + /** + * @param string $password + */ + public function setPassword(string $password): void + { + $this->password = $password; + } + /** * @return String */ @@ -79,4 +95,4 @@ class DynDNS $this->name = $name; } -} \ No newline at end of file +}