| 1 | <?php |
||
| 13 | class Libraries extends LazyResourceList implements \ArrayAccess, \Countable, \Iterator |
||
| 14 | { |
||
| 15 | use ReadOnlyArrayAccess; |
||
| 16 | use IterableCollection; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Locations constructor. |
||
| 20 | * |
||
| 21 | * @param Client $client |
||
| 22 | */ |
||
| 23 | public function __construct(Client $client) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get a single library by its library code. |
||
| 30 | * |
||
| 31 | * @param string $code |
||
| 32 | * @return Library |
||
| 33 | */ |
||
| 34 | public function get($code) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Convert a data element to a resource object. |
||
| 41 | * |
||
| 42 | * @param $data |
||
| 43 | * @return Library |
||
| 44 | */ |
||
| 45 | protected function convertToResource($data) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Generate the base URL for this resource. |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | protected function urlBase() |
||
| 60 | } |
||
| 61 |