1: <?php
2:
3: namespace Scopus\Response;
4:
5: class Bibrecord
6: {
7: /** @var array */
8: protected $data;
9:
10: /** @var BibrecordHead */
11: protected $head;
12:
13: public function __construct(array $data)
14: {
15: $this->data = $data;
16: }
17:
18: public function getHead()
19: {
20: return $this->head ?: $this->head = new BibrecordHead($this->data['head']);
21: }
22: }