@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | /** |
20 | 20 | * Get or set preference value. |
21 | 21 | * |
22 | - * @param mixed $key |
|
22 | + * @param string $key |
|
23 | 23 | * @param mixed $value |
24 | 24 | * @param string $type |
25 | 25 | * |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * Cast value. |
43 | 43 | * |
44 | 44 | * @param mixed $value |
45 | - * @param mixed $type |
|
45 | + * @param string $type |
|
46 | 46 | * |
47 | 47 | * @return mixed Value. |
48 | 48 | */ |
@@ -27,7 +27,6 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * Create the Vacancy Service object. |
29 | 29 | * |
30 | - * @param Timegridio\Concierge\Models\Business $business |
|
31 | 30 | */ |
32 | 31 | public function __construct() |
33 | 32 | { |
@@ -37,7 +36,7 @@ discard block |
||
37 | 36 | /** |
38 | 37 | * Set Business. |
39 | 38 | * |
40 | - * @param Timegridio\Concierge\Models\Business $business |
|
39 | + * @param Business $business |
|
41 | 40 | */ |
42 | 41 | public function setBusiness(Business $business) |
43 | 42 | { |
@@ -78,6 +77,9 @@ discard block |
||
78 | 77 | return $this->generateAvailability($vacancies, $starting, $limit); |
79 | 78 | } |
80 | 79 | |
80 | + /** |
|
81 | + * @param integer $userId |
|
82 | + */ |
|
81 | 83 | protected function removeAllBookedVacancies($userId, $vacancies) |
82 | 84 | { |
83 | 85 | $vacancies = $this->strategy->removeBookedVacancies($vacancies); |
@@ -131,7 +133,7 @@ discard block |
||
131 | 133 | * @param Carbon $targetDateTime |
132 | 134 | * @param int $serviceId |
133 | 135 | * |
134 | - * @return Timegridio\Concierge\Models\Vacancy |
|
136 | + * @return Models\Appointment |
|
135 | 137 | */ |
136 | 138 | public function getSlotFor(Carbon $targetDateTime, $serviceId) |
137 | 139 | { |
@@ -268,6 +270,9 @@ discard block |
||
268 | 270 | return $vacancy !== null; |
269 | 271 | } |
270 | 272 | |
273 | + /** |
|
274 | + * @param string $key |
|
275 | + */ |
|
271 | 276 | protected function arrayGroupBy($key, $array) |
272 | 277 | { |
273 | 278 | $grouped = []; |