| 1 | <?php |
||
| 9 | class Hub extends Entity |
||
| 10 | { |
||
| 11 | protected $name; |
||
| 12 | protected $location; |
||
| 13 | protected $address; |
||
| 14 | |||
| 15 | protected $endpoint = 'hubs'; |
||
| 16 | |||
| 17 | protected static $properties = [ |
||
| 18 | 'id', |
||
| 19 | 'name', |
||
| 20 | 'location', |
||
| 21 | 'address', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | public function getName() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | public function getLocation() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function getAddress() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @throws \BadMethodCallException |
||
| 50 | */ |
||
| 51 | public function update() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @throws \BadMethodCallException |
||
| 58 | */ |
||
| 59 | public function delete() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param array $metadata |
||
| 66 | * @internal |
||
| 67 | */ |
||
| 68 | public function setMetadata(array $metadata) |
||
| 72 | } |
||
| 73 |