1 | <?php |
||
10 | trait BookingScopes |
||
11 | { |
||
12 | /** |
||
13 | * Get past bookings. |
||
14 | * |
||
15 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
16 | */ |
||
17 | public function pastBookings(): MorphMany |
||
24 | |||
25 | /** |
||
26 | * Get future bookings. |
||
27 | * |
||
28 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
29 | */ |
||
30 | public function futureBookings(): MorphMany |
||
37 | |||
38 | /** |
||
39 | * Get current bookings. |
||
40 | * |
||
41 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
42 | */ |
||
43 | public function currentBookings(): MorphMany |
||
52 | |||
53 | /** |
||
54 | * Get cancelled bookings. |
||
55 | * |
||
56 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
57 | */ |
||
58 | public function cancelledBookings(): MorphMany |
||
63 | |||
64 | /** |
||
65 | * Get bookings starts before the given date. |
||
66 | * |
||
67 | * @param string $date |
||
68 | * |
||
69 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
70 | */ |
||
71 | public function bookingsStartsBefore(string $date): MorphMany |
||
78 | |||
79 | /** |
||
80 | * Get bookings starts after the given date. |
||
81 | * |
||
82 | * @param string $date |
||
83 | * |
||
84 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
85 | */ |
||
86 | public function bookingsStartsAfter(string $date): MorphMany |
||
93 | |||
94 | /** |
||
95 | * Get bookings starts between the given dates. |
||
96 | * |
||
97 | * @param string $startsAt |
||
98 | * @param string $endsAt |
||
99 | * |
||
100 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
101 | */ |
||
102 | public function bookingsStartsBetween(string $startsAt, string $endsAt): MorphMany |
||
110 | |||
111 | /** |
||
112 | * Get bookings ends before the given date. |
||
113 | * |
||
114 | * @param string $date |
||
115 | * |
||
116 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
117 | */ |
||
118 | public function bookingsEndsBefore(string $date): MorphMany |
||
125 | |||
126 | /** |
||
127 | * Get bookings ends after the given date. |
||
128 | * |
||
129 | * @param string $date |
||
130 | * |
||
131 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
132 | */ |
||
133 | public function bookingsEndsAfter(string $date): MorphMany |
||
140 | |||
141 | /** |
||
142 | * Get bookings ends between the given dates. |
||
143 | * |
||
144 | * @param string $startsAt |
||
145 | * @param string $endsAt |
||
146 | * |
||
147 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
148 | */ |
||
149 | public function bookingsEndsBetween(string $startsAt, string $endsAt): MorphMany |
||
157 | |||
158 | /** |
||
159 | * Get bookings cancelled before the given date. |
||
160 | * |
||
161 | * @param string $date |
||
162 | * |
||
163 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
164 | */ |
||
165 | public function bookingsCancelledBefore(string $date): MorphMany |
||
171 | |||
172 | /** |
||
173 | * Get bookings cancelled after the given date. |
||
174 | * |
||
175 | * @param string $date |
||
176 | * |
||
177 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
178 | */ |
||
179 | public function bookingsCancelledAfter(string $date): MorphMany |
||
185 | |||
186 | /** |
||
187 | * Get bookings cancelled between the given dates. |
||
188 | * |
||
189 | * @param string $startsAt |
||
190 | * @param string $endsAt |
||
191 | * |
||
192 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
193 | */ |
||
194 | public function bookingsCancelledBetween(string $startsAt, string $endsAt): MorphMany |
||
201 | } |
||
202 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.