1: <?php
2:
3: namespace Scopus\Response;
4:
5: class BibrecordHead
6: {
7: /** @var array */
8: protected $data;
9:
10: /** @var AuthorGroup */
11: protected $authorGroup;
12:
13: /** @var Correspondence */
14: protected $correspondence;
15:
16: /** @var Source */
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: return null;
31: }
32:
33: public function getCorrespondence()
34: {
35: if (isset($this->data['correspondence'])) {
36: return $this->correspondence ?? $this->correspondence = new Correspondence($this->data['correspondence']);
37: }
38:
39: return null;
40: }
41:
42: public function getSource()
43: {
44: if (isset($this->data['source'])) {
45: return $this->source ?? $this->source = new Source($this->data['source']);
46: }
47:
48: return null;
49: }
50: }