1 | <?php |
||
27 | class Planner extends Employee |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * @param Group $group |
||
32 | * @return bool |
||
33 | */ |
||
34 | 38 | public function verifyGroup(Group $group) |
|
40 | |||
41 | /* |
||
42 | * for a planer employee the policyCheckable methods say if the planer can modify or not that part |
||
43 | */ |
||
44 | |||
45 | /** |
||
46 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
47 | */ |
||
48 | 40 | public function groupsManaged() |
|
52 | |||
53 | /** |
||
54 | * @param Employee $employee |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function verifyEmployee(Employee $employee) |
||
65 | |||
66 | /** |
||
67 | * @param Company $company |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function verifyCompany(Company $company) |
||
74 | |||
75 | /** |
||
76 | * the employee can see a calendar |
||
77 | * @param Calendar $calendar |
||
78 | * @return bool |
||
79 | */ |
||
80 | public function verifyCalendar(Calendar $calendar) |
||
85 | |||
86 | /** |
||
87 | * @param Timeslot $timeslot |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function verifyTimeslot(Timeslot $timeslot) |
||
95 | |||
96 | /** |
||
97 | * @param MeetingTimeslot $meetingTimeslot |
||
98 | * @return bool |
||
99 | */ |
||
100 | 8 | public function verifyMeetingTimeslot(MeetingTimeslot $meetingTimeslot) |
|
105 | |||
106 | /** |
||
107 | * @param Meeting $meeting |
||
108 | * @return bool |
||
109 | */ |
||
110 | 18 | public function verifyMeeting(Meeting $meeting) |
|
115 | } |
||
116 |