| 1: | <?php |
| 2: | |
| 3: | namespace Scopus\Response; |
| 4: | |
| 5: | class EntryAuthor extends AuthorName implements IAuthor |
| 6: | { |
| 7: | public function __construct(array $data) |
| 8: | { |
| 9: | parent::__construct(array_merge($data, [ |
| 10: | 'indexed-name' => $data['authname'] |
| 11: | ])); |
| 12: | } |
| 13: | |
| 14: | public function getId() |
| 15: | { |
| 16: | return $this->data['authid']; |
| 17: | } |
| 18: | |
| 19: | public function getName() |
| 20: | { |
| 21: | return $this->data['authname']; |
| 22: | } |
| 23: | |
| 24: | public function getAffiliationId() |
| 25: | { |
| 26: | return $this->data['afid'][0]['$']; |
| 27: | } |
| 28: | |
| 29: | public function getUrl() |
| 30: | { |
| 31: | return $this->data['author-url']; |
| 32: | } |
| 33: | } |