| 1 | <?php |
||
| 11 | class CodeTable extends LazyResource |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | public $code; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * CodeTable constructor. |
||
| 18 | * |
||
| 19 | * @param Client $client |
||
| 20 | * @param string $code |
||
| 21 | */ |
||
| 22 | public function __construct(Client $client, $code) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Return a single row referring to the code table. |
||
| 30 | * |
||
| 31 | * @param $code - The code in the Table we want to pull. |
||
| 32 | * |
||
| 33 | * @return object - the row in the code table. |
||
| 34 | */ |
||
| 35 | public function getRowByCode($code) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Check if we have the full representation of our data object. |
||
| 51 | * |
||
| 52 | * @param \stdClass $data |
||
| 53 | * |
||
| 54 | * @return bool |
||
| 55 | */ |
||
| 56 | protected function isInitialized($data) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Generate the base URL for this resource. |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | protected function urlBase() |
||
| 70 | |||
| 71 | } |
||
| 72 |