1 | <?php |
||
14 | class Doorman |
||
15 | { |
||
16 | public $error = ''; |
||
17 | |||
18 | /** |
||
19 | * @param $code |
||
20 | * @param string|null $email |
||
21 | */ |
||
22 | 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) |
||
45 | |||
46 | protected function prep($code, string $email = null) |
||
54 | |||
55 | /** |
||
56 | * @param $code |
||
57 | * |
||
58 | * @return \Clarkeash\Doorman\Models\Invite |
||
59 | * @throws \Clarkeash\Doorman\Exceptions\InvalidInviteCode |
||
60 | */ |
||
61 | protected function lookupInvite($code): Invite |
||
69 | |||
70 | /** |
||
71 | * @param \Clarkeash\Doorman\Models\Invite $invite |
||
72 | * @param string|null $email |
||
73 | * |
||
74 | * @throws \Clarkeash\Doorman\Exceptions\ExpiredInviteCode |
||
75 | * @throws \Clarkeash\Doorman\Exceptions\MaxUsesReached |
||
76 | * @throws \Clarkeash\Doorman\Exceptions\NotYourInviteCode |
||
77 | */ |
||
78 | protected function validateInvite(Invite $invite, string $email = null) |
||
92 | |||
93 | public function generate() |
||
97 | } |
||
98 |
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.