Skip to content

Commit

Permalink
Support mobile field in account
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfaassen committed Feb 28, 2016
1 parent 1821385 commit fe245ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Client.php
Expand Up @@ -112,6 +112,7 @@ protected function itemToAccount($data)
$account->setDisplayName($data['display_name']);
$account->setAbout($data['about']);
$account->setEmail($data['email']);
$account->setMobile($data['mobile']);
if (isset($data['type'])) {
$account->setAccountType($data['type']);
}
Expand Down
13 changes: 13 additions & 0 deletions src/Model/Account.php
Expand Up @@ -9,6 +9,7 @@ class Account
private $about;
private $pictureUrl;
private $email;
private $mobile;
private $createdAt;
private $deletedAt;
private $accountType;
Expand Down Expand Up @@ -74,6 +75,18 @@ public function setEmail($email)
return $this;
}

public function getMobile()
{
return $this->mobile;
}

public function setMobile($mobile)
{
$this->mobile = $mobile;
return $this;
}


public function getCreatedAt()
{
return $this->createdAt;
Expand Down

0 comments on commit fe245ea

Please sign in to comment.