added password property

This commit is contained in:
tracer 2022-09-17 16:28:51 +02:00
parent cce30b17ad
commit b77e7bf348

View File

@ -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;
}
}
}