| 1 | <?php |
||
| 7 | abstract class ClientObject extends DataObject |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ApiClient The API client the object belongs to. |
||
| 11 | */ |
||
| 12 | protected $client; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Creates a client object from a data array. |
||
| 16 | * |
||
| 17 | * @param ApiClient $client The API client the object belongs to. |
||
| 18 | * @param array $data An array of model data. |
||
| 19 | */ |
||
| 20 | 38 | public function __construct(ApiClient $client, array $data) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Gets the client object that created the object. |
||
| 28 | * |
||
| 29 | * @return ApiClient The client object that created the object. |
||
| 30 | */ |
||
| 31 | public function getClient() |
||
| 35 | } |
||
| 36 |