diff --git a/src/Client.php b/src/Client.php index 4a9fe7d..b5707a8 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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); } /** diff --git a/src/Data/Account.php b/src/Data/Account.php index 99f8b66..6532f6e 100644 --- a/src/Data/Account.php +++ b/src/Data/Account.php @@ -4,12 +4,6 @@ class Account { - - /** - * @var array - */ - protected $contact; - /** * @var string */ @@ -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; @@ -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