1 | <?php |
||
21 | class WuBookAvailability extends WuBookApi |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $token; |
||
28 | |||
29 | /** |
||
30 | * Create a new WuBookAvailability Instance. |
||
31 | */ |
||
32 | public function __construct($config, $cache, $client, $token = null) |
||
38 | |||
39 | /** |
||
40 | * http://tdocs.wubook.net/wired/avail.html#update_avail |
||
41 | * http://tdocs.wubook.net/wired/avail.html#update_sparse_avail |
||
42 | * |
||
43 | * if dfrom param is not set the update_sparse_avail method will be called, update_avail method otherwise |
||
44 | * |
||
45 | * @param array $rooms |
||
46 | * @param string $dfrom |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function update_avail($rooms, $dfrom = null) |
||
57 | |||
58 | /** |
||
59 | * http://tdocs.wubook.net/wired/avail.html#fetch_rooms_values |
||
60 | * |
||
61 | * if dfrom param is not set the update_sparse_avail method will be called, update_avail method otherwise |
||
62 | * |
||
63 | * @param array $rooms |
||
64 | * @param string $dfrom |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function fetch_rooms_values($dfrom, $dto, $rooms = null) |
||
81 | } |
||
82 |