1 | <?php |
||
14 | class Manager |
||
15 | { |
||
16 | /** |
||
17 | * @param $code |
||
18 | * @param string|null $email |
||
19 | */ |
||
20 | public function redeem($code, string $email = null) |
||
28 | |||
29 | /** |
||
30 | * @param $code |
||
31 | * @param string|null $email |
||
32 | * |
||
33 | * @return bool |
||
34 | */ |
||
35 | public function check($code, string $email = null) |
||
46 | |||
47 | /** |
||
48 | * @param $code |
||
49 | * |
||
50 | * @return \Clarkeash\Doorman\Models\Invite |
||
51 | * @throws \Clarkeash\Doorman\Exceptions\InvalidInviteCode |
||
52 | */ |
||
53 | protected function lookupInvite($code): Invite |
||
61 | |||
62 | /** |
||
63 | * @param \Clarkeash\Doorman\Models\Invite $invite |
||
64 | * @param string|null $email |
||
65 | * |
||
66 | * @throws \Clarkeash\Doorman\Exceptions\ExpiredInviteCode |
||
67 | * @throws \Clarkeash\Doorman\Exceptions\MaxUsesReached |
||
68 | * @throws \Clarkeash\Doorman\Exceptions\NotYourInviteCode |
||
69 | */ |
||
70 | protected function validateInvite(Invite $invite, string $email = null) |
||
84 | } |
||
85 |
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.