1 | <?php |
||
12 | class IntegrationsPolicy |
||
13 | { |
||
14 | /** |
||
15 | * Create a integrations. |
||
16 | * |
||
17 | * @param User $authUser |
||
18 | * @param string $integrationsClass |
||
19 | * @return bool |
||
20 | */ |
||
21 | public function create(User $authUser, string $integrationsClass) |
||
29 | |||
30 | /** |
||
31 | * Get a integrations. |
||
32 | * |
||
33 | * @param User $authUser |
||
34 | * @param mixed $integrations |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function get(User $authUser, $integrations) |
||
41 | |||
42 | /** |
||
43 | * Determine if an authenticated user has access to a integrations. |
||
44 | * |
||
45 | * @param User $authUser |
||
46 | * @param $integrations |
||
47 | * @return bool |
||
48 | */ |
||
49 | private function hasAccessToIntegrations(User $authUser, $integrations): bool |
||
65 | |||
66 | /** |
||
67 | * Update a integrations. |
||
68 | * |
||
69 | * @param User $authUser |
||
70 | * @param mixed $integrations |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function update(User $authUser, $integrations) |
||
77 | |||
78 | /** |
||
79 | * Delete a integrations. |
||
80 | * |
||
81 | * @param User $authUser |
||
82 | * @param mixed $integrations |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function delete(User $authUser, $integrations) |
||
89 | } |
||
90 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.