1
0
Fork 0
mirror of https://github.com/fernwerker/ownDynDNS.git synced 2025-07-18 01:05:43 +02:00

added option to pass netcup creds via url

This commit is contained in:
Nils Blume 2023-08-31 08:36:09 +02:00
parent 46d9f8f759
commit d974e5a886
4 changed files with 118 additions and 14 deletions

View file

@ -44,6 +44,21 @@ final class Payload
*/
private $host;
/**
* @var int
*/
private $customerId;
/**
* @var string
*/
private $apiKey;
/**
* @var string
*/
private $apiPassword;
/**
* @var bool
*/
@ -85,6 +100,41 @@ final class Payload
);
}
/**
* @return bool
*/
public function isValidNetcupCreds()
{
return
!empty($this->customerId) &&
!empty($this->apiKey) &&
!empty($this->apiPassword);
}
/**
* @return int
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @return string
*/
public function getapiKey()
{
return $this->apiKey;
}
/**
* @return string
*/
public function getApiPassword()
{
return $this->apiPassword;
}
/**
* @return string
*/