Merge pull request #71 from bessone/master

initialIP removed from API
This commit is contained in:
Peter Bakker authored and GitHub committed 2024-12-23 08:35:47 +01:00
commit 8e201aadc3
2 files changed
+1 -18

No files matched your search

+1 -1
View File
@@ -359,7 +359,7 @@ class Client
$data = json_decode((string)$response->getBody(), true);
$accountURL = $response->getHeaderLine('Location');
$date = (new \DateTime())->setTimestamp(strtotime($data['createdAt']));
return new Account($data['contact'], $date, ($data['status'] == 'valid'), $data['initialIp'], $accountURL);
return new Account($data['contact'], $date, ($data['status'] == 'valid'), $accountURL);
}
/**
-17
View File
@@ -20,11 +20,6 @@ class Account
*/
protected $isValid;
/**
* @var
*/
protected $initialIp;
/**
* @var string
*/
@@ -36,17 +31,14 @@ class Account
* @param array $contact
* @param \DateTime $createdAt
* @param bool $isValid
* @param string $initialIp
* @param string $accountURL
*/
public function __construct(
array $contact,
\DateTime $createdAt,
bool $isValid,
string $initialIp,
string $accountURL
) {
$this->initialIp = $initialIp;
$this->contact = $contact;
$this->createdAt = $createdAt;
$this->isValid = $isValid;
@@ -89,15 +81,6 @@ class Account
return $this->contact;
}
/**
* Return initial IP
* @return string
*/
public function getInitialIp(): string
{
return $this->initialIp;
}
/**
* Returns validation status
* @return bool