| 1: | <?php |
| 2: | |
| 3: | namespace Scopus\Response; |
| 4: | |
| 5: | class BibrecordHead |
| 6: | { |
| 7: | |
| 8: | protected $data; |
| 9: | |
| 10: | |
| 11: | protected $authorGroup; |
| 12: | |
| 13: | |
| 14: | protected $correspondence; |
| 15: | |
| 16: | |
| 17: | protected $source; |
| 18: | |
| 19: | public function __construct(array $data) |
| 20: | { |
| 21: | $this->data = $data; |
| 22: | } |
| 23: | |
| 24: | public function getAuthorGroup() |
| 25: | { |
| 26: | if (isset($this->data['author-group'])) { |
| 27: | return $this->authorGroup ?: $this->authorGroup = new AuthorGroup($this->data['author-group']); |
| 28: | } |
| 29: | } |
| 30: | |
| 31: | public function getCorrespondence() |
| 32: | { |
| 33: | if (isset($this->data['correspondence'])) { |
| 34: | return $this->correspondence ?: $this->correspondence = new Correspondence($this->data['correspondence']); |
| 35: | } |
| 36: | } |
| 37: | |
| 38: | public function getSource() |
| 39: | { |
| 40: | if (isset($this->data['source'])) { |
| 41: | return $this->source ?: $this->source = new Source($this->data['source']); |
| 42: | } |
| 43: | } |
| 44: | } |