| 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 list of rows referring to the code of the rows in the table. | ||
| 30 | * | ||
| 31 | * @param string $code - The code of the row in the Table we want to pull. | ||
| 32 | * | ||
| 33 | * @return array $found - The rows in the code table that match the code passed in. | ||
| 34 | */ | ||
| 35 | public function getRowByCode($code) | ||
| 46 | |||
| 47 | /** | ||
| 48 | * Check if we have the full representation of our data object. | ||
| 49 | * | ||
| 50 | * @param \stdClass $data | ||
| 51 | * | ||
| 52 | * @return bool | ||
| 53 | */ | ||
| 54 | protected function isInitialized($data) | ||
| 58 | |||
| 59 | /** | ||
| 60 | * Generate the base URL for this resource. | ||
| 61 | * | ||
| 62 | * @return string | ||
| 63 | */ | ||
| 64 | protected function urlBase() | ||
| 68 | |||
| 69 | } | ||
| 70 |