diff --git a/src/Entity/Author.php b/src/Entity/Author.php index 55b1cf7..49b8bec 100644 --- a/src/Entity/Author.php +++ b/src/Entity/Author.php @@ -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 */