| 1 | <?php | ||
| 11 | class CodeTables implements \ArrayAccess | ||
| 12 | { | ||
| 13 | use ReadOnlyArrayAccess; | ||
| 14 | |||
| 15 | protected $client; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * CodeTables constructor. | ||
| 19 | * | ||
| 20 | * @param Client $client | ||
| 21 | */ | ||
| 22 | public function __construct(Client $client) | ||
| 26 | |||
| 27 | /** | ||
| 28 | * Get a CodeTable by identifier | ||
| 29 | * | ||
| 30 | * @param $code The identifier of a CodeTable | ||
| 31 | * | ||
| 32 | * @return CodeTable | ||
| 33 | */ | ||
| 34 | public function get($code) | ||
| 38 | |||
| 39 | /** | ||
| 40 | * Return a object containing a list of code tables. | ||
| 41 | * | ||
| 42 | * @return CodeTable ojbect list. | ||
| 43 | */ | ||
| 44 | public function getCodeTables() | ||
| 48 | |||
| 49 | /** | ||
| 50 | * Generate the base URL for this resource. | ||
| 51 | * | ||
| 52 | * @return string | ||
| 53 | */ | ||
| 54 | protected function urlBase() | ||
| 58 | |||
| 59 | } | ||
| 60 |