1 | <?php |
||
13 | class Files extends LazyResourceList implements \Countable, \Iterator, \ArrayAccess |
||
14 | { |
||
15 | use ReadOnlyArrayAccess; |
||
16 | use IterableCollection; |
||
17 | |||
18 | /** |
||
19 | * The Bib this Files list belongs to. |
||
20 | * |
||
21 | * @var Bib |
||
22 | */ |
||
23 | public $bib; |
||
24 | |||
25 | /** |
||
26 | * The Representation this Files list belongs to. |
||
27 | * |
||
28 | * @var Representation |
||
29 | */ |
||
30 | public $representation; |
||
31 | |||
32 | /** |
||
33 | * Files constructor. |
||
34 | * |
||
35 | * @param Client $client |
||
36 | * @param Bib $bib |
||
37 | * @param Representation $representation |
||
38 | */ |
||
39 | public function __construct(Client $client, Bib $bib = null, Representation $representation = null) |
||
45 | |||
46 | /** |
||
47 | * Convert a data element to a resource object. |
||
48 | * |
||
49 | * @param $data |
||
50 | * |
||
51 | * @return File |
||
52 | */ |
||
53 | protected function convertToResource($data) |
||
58 | |||
59 | /** |
||
60 | * Generate the base URL for this resource. |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | protected function urlBase() |
||
68 | } |
||
69 |