Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'), $accountURL);
return new Account($date, ($data['status'] == 'valid'), $accountURL);
}

/**
Expand Down
18 changes: 0 additions & 18 deletions src/Data/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@

class Account
{

/**
* @var array
*/
protected $contact;

/**
* @var string
*/
Expand All @@ -28,18 +22,15 @@ class Account

/**
* Account constructor.
* @param array $contact
* @param \DateTime $createdAt
* @param bool $isValid
* @param string $accountURL
*/
public function __construct(
array $contact,
\DateTime $createdAt,
bool $isValid,
string $accountURL
) {
$this->contact = $contact;
$this->createdAt = $createdAt;
$this->isValid = $isValid;
$this->accountURL = $accountURL;
Expand Down Expand Up @@ -72,15 +63,6 @@ public function getAccountURL(): string
return $this->accountURL;
}

/**
* Return contact data
* @return array
*/
public function getContact(): array
{
return $this->contact;
}

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