1 | <?php |
||
36 | class Planner extends Employee |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
41 | */ |
||
42 | 40 | public function groupsManaged() |
|
46 | |||
47 | /* |
||
48 | * for a planer employee the policyCheckable methods say if the planer can modify or not that part |
||
49 | */ |
||
50 | |||
51 | /** |
||
52 | * @param Group $group |
||
53 | * @return bool |
||
54 | */ |
||
55 | 38 | public function verifyGroup(Group $group) |
|
61 | |||
62 | /** |
||
63 | * @param Employee $employee |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function verifyEmployee(Employee $employee) |
||
72 | |||
73 | /** |
||
74 | * @param Company $company |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function verifyCompany(Company $company) |
||
81 | |||
82 | /** |
||
83 | * the employee can see a calendar |
||
84 | * @param Calendar $calendar |
||
85 | * @return bool |
||
86 | */ |
||
87 | public function verifyCalendar(Calendar $calendar) |
||
92 | |||
93 | /** |
||
94 | * @param Timeslot $timeslot |
||
95 | * @return bool |
||
96 | */ |
||
97 | public function verifyTimeslot(Timeslot $timeslot) |
||
102 | |||
103 | /** |
||
104 | * @param Meeting $meeting |
||
105 | * @return bool |
||
106 | */ |
||
107 | 18 | public function verifyMeeting(Meeting $meeting) |
|
112 | |||
113 | |||
114 | /** |
||
115 | * @param MeetingTimeslot $meetingTimeslot |
||
116 | * @return bool |
||
117 | */ |
||
118 | 8 | public function verifyMeetingTimeslot(MeetingTimeslot $meetingTimeslot) |
|
123 | } |
||
124 |