1 | <?php |
||
9 | class Xotelia |
||
10 | { |
||
11 | const BASE_URL = 'https://admin.xotelia.com/api/'; |
||
12 | const MAX_RETRIES = 5; |
||
13 | |||
14 | /** |
||
15 | * @var Client |
||
16 | */ |
||
17 | protected $client; |
||
18 | |||
19 | /** |
||
20 | * @param string $token |
||
21 | * @param int $maxRetries |
||
22 | */ |
||
23 | public function __construct($token, $maxRetries = self::MAX_RETRIES) |
||
48 | |||
49 | /** |
||
50 | * @return Booking |
||
51 | */ |
||
52 | public function bookings() |
||
56 | } |
||
57 |