Conditions | 5 |
Paths | 16 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function __invoke(Request $request) |
||
10 | { |
||
11 | $currentUser = $this->getCurrentUser($request); |
||
12 | $shiftId = (int) $request->getAttribute('id'); |
||
13 | |||
14 | $body = $request->getParsedBody(); |
||
15 | $employeeId = isset($body->employee_id) ? (int) $body->employee_id : null; |
||
16 | $start = isset($body->start_time) ? $body->start_time : ''; |
||
17 | $end = isset($body->end_time) ? $body->end_time : ''; |
||
18 | $break = isset($body->break) ? $body->break : ''; |
||
19 | |||
20 | return [$currentUser, $shiftId, $employeeId, $start, $end, $break]; |
||
21 | } |
||
22 | } |
||
23 |