Skip to content

Commit

Permalink
Merge pull request #22 from bookboon/feature/341
Browse files Browse the repository at this point in the history
Add Country and ProfileImage to author
  • Loading branch information
lkm committed Nov 22, 2018
2 parents 13a1e06 + 9f0961c commit 6a613f6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Entity/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ protected function isValid(array $array)
return isset($array['_id'], $array['name'], $array['books']);
}

/**
* @return string
*
*/
public function getProfileImage() {
return $this->safeGet('profileImage', '');
}

/**
* @return string
*/
public function getCountry()
{
return $this->safeGet('country', '');
}

/**
* @return string UUID of entity
*/
Expand Down

0 comments on commit 6a613f6

Please sign in to comment.