Skip to content

Commit

Permalink
Merge pull request #71 from bessone/master
Browse files Browse the repository at this point in the history
initialIP removed from API
  • Loading branch information
bakkerpeter authored Dec 23, 2024
2 parents fcb8417 + 720a7b6 commit 8e201aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function getAccount(): Account
$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);
}

/**
Expand Down
17 changes: 0 additions & 17 deletions src/Data/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ class Account
*/
protected $isValid;

/**
* @var
*/
protected $initialIp;

/**
* @var string
*/
Expand All @@ -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;
Expand Down Expand Up @@ -89,15 +81,6 @@ public function getContact(): array
return $this->contact;
}

/**
* Return initial IP
* @return string
*/
public function getInitialIp(): string
{
return $this->initialIp;
}

/**
* Returns validation status
* @return bool
Expand Down

0 comments on commit 8e201aa

Please sign in to comment.