1 | <?php |
||
21 | class WuBookReservations extends WuBookApi |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $token; |
||
28 | |||
29 | /** |
||
30 | * Create a new WuBookRooms Instance. |
||
31 | */ |
||
32 | public function __construct($config, $cache, $client, $token = null) |
||
38 | |||
39 | /** |
||
40 | * http://tdocs.wubook.net/wired/fetch.html#push_activation |
||
41 | * |
||
42 | * @param string $url |
||
43 | * @param int $test |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function push_activation($url, $test = 0) |
||
50 | |||
51 | /** |
||
52 | * http://tdocs.wubook.net/wired/fetch.html#push_url |
||
53 | * |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function push_url() |
||
60 | |||
61 | /** |
||
62 | * http://tdocs.wubook.net/wired/fetch.html#fetch_new_bookings |
||
63 | * |
||
64 | * @param int $ancillary |
||
65 | * @param int $mark |
||
66 | * @return mixed |
||
67 | */ |
||
68 | public function fetch_new_bookings($ancillary = 0, $mark = 1) |
||
72 | |||
73 | /** |
||
74 | * http://tdocs.wubook.net/wired/fetch.html#mark_bookings |
||
75 | * |
||
76 | * @param array $reservations |
||
77 | * @return mixed |
||
78 | */ |
||
79 | public function mark_bookings($reservations = []) |
||
83 | |||
84 | /** |
||
85 | * http://tdocs.wubook.net/wired/fetch.html#fetch_bookings |
||
86 | * |
||
87 | * @param string $dfrom |
||
88 | * @param string $dto |
||
89 | * @param int $oncreated |
||
90 | * @param int $ancillary |
||
91 | * @return mixed |
||
92 | */ |
||
93 | public function fetch_bookings($dfrom = '', $dto = '', $oncreated = 1, $ancillary = 0) |
||
97 | |||
98 | /** |
||
99 | * http://tdocs.wubook.net/wired/fetch.html#fetch_bookings_codes |
||
100 | * |
||
101 | * @param string $dfrom |
||
102 | * @param string $dto |
||
103 | * @param int $oncreated |
||
104 | * @return mixed |
||
105 | */ |
||
106 | public function fetch_bookings_codes($dfrom, $dto, $oncreated = 1) |
||
110 | |||
111 | /** |
||
112 | * http://tdocs.wubook.net/wired/fetch.html#fetch_booking |
||
113 | * |
||
114 | * @param string $rcode |
||
115 | * @param boolean $ancillary |
||
116 | * @return mixed |
||
117 | */ |
||
118 | public function fetch_booking($rcode, $ancillary = false) |
||
122 | |||
123 | /** |
||
124 | * http://tdocs.wubook.net/wired/fetch.html#get_fount_symbols |
||
125 | * |
||
126 | * @return mixed |
||
127 | */ |
||
128 | public function get_fount_symbols() |
||
132 | |||
133 | /** |
||
134 | * http://tdocs.wubook.net/wired/rsrvs.html#cancel_reservation |
||
135 | * |
||
136 | * @param string $rcode |
||
137 | * @param string $reason |
||
138 | * @return mixed |
||
139 | */ |
||
140 | public function cancel_reservation($rcode, $reason = '') |
||
144 | |||
145 | /** |
||
146 | * http://tdocs.wubook.net/wired/rsrvs.html#new_reservation |
||
147 | * |
||
148 | * @param array $data |
||
149 | * @return mixed |
||
150 | */ |
||
151 | public function new_reservation($data) |
||
155 | } |
||
156 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.