| 1 | <?php |
||
| 9 | class Loan extends GhostModel |
||
| 10 | { |
||
| 11 | /* @var User */ |
||
| 12 | protected $user; |
||
| 13 | |||
| 14 | /* @var Item */ |
||
| 15 | protected $item; |
||
| 16 | |||
| 17 | /* @var string */ |
||
| 18 | protected $loan_id; |
||
| 19 | |||
| 20 | public function __construct(Client $client, User $user, Item $item, $loan_id) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Generate the base URL for this resource. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | protected function urlBase() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Check if we have the full representation of our data object. |
||
| 40 | * |
||
| 41 | * @param \stdClass $data |
||
| 42 | * @return boolean |
||
| 43 | */ |
||
| 44 | protected function isInitialized($data) |
||
| 48 | } |
||
| 49 |