1 | <?php |
||
15 | class EmailVerificationBroker implements EmailVerificationBrokerContract |
||
16 | { |
||
17 | /** |
||
18 | * The application key. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $key; |
||
23 | |||
24 | /** |
||
25 | * The user provider implementation. |
||
26 | * |
||
27 | * @var \Illuminate\Contracts\Auth\UserProvider |
||
28 | */ |
||
29 | protected $users; |
||
30 | |||
31 | /** |
||
32 | * The number of minutes that the reset token should be considered valid. |
||
33 | * |
||
34 | * @var int |
||
35 | */ |
||
36 | protected $expiration; |
||
37 | |||
38 | /** |
||
39 | * Create a new verification broker instance. |
||
40 | * |
||
41 | * @param \Illuminate\Contracts\Auth\UserProvider $users |
||
42 | * @param string $key |
||
43 | * @param int $expiration |
||
44 | */ |
||
45 | public function __construct(UserProvider $users, $key, $expiration) |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function sendVerificationLink(array $credentials): string |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function verify(array $credentials, Closure $callback) |
||
95 | |||
96 | /** |
||
97 | * Get the user for the given credentials. |
||
98 | * |
||
99 | * @param array $credentials |
||
100 | * |
||
101 | * @throws \UnexpectedValueException |
||
102 | * |
||
103 | * @return \Rinvex\Auth\Contracts\CanVerifyEmailContract |
||
104 | */ |
||
105 | public function getUser(array $credentials): CanVerifyEmailContract |
||
115 | |||
116 | /** |
||
117 | * Create a new email verification token for the given user. |
||
118 | * |
||
119 | * @param \Rinvex\Auth\Contracts\CanVerifyEmailContract $user |
||
120 | * @param int $expiration |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | public function createToken(CanVerifyEmailContract $user, $expiration): string |
||
130 | |||
131 | /** |
||
132 | * Validate the given email verification token. |
||
133 | * |
||
134 | * @param \Rinvex\Auth\Contracts\CanVerifyEmailContract $user |
||
135 | * @param array $credentials |
||
136 | * |
||
137 | * @return bool |
||
138 | */ |
||
139 | public function validateToken(CanVerifyEmailContract $user, array $credentials): bool |
||
145 | |||
146 | /** |
||
147 | * Validate the given expiration timestamp. |
||
148 | * |
||
149 | * @param int $expiration |
||
150 | * |
||
151 | * @return bool |
||
152 | */ |
||
153 | public function validateTimestamp($expiration): bool |
||
157 | |||
158 | /** |
||
159 | * Return the application key. |
||
160 | * |
||
161 | * @return string |
||
162 | */ |
||
163 | public function getKey(): string |
||
171 | |||
172 | /** |
||
173 | * Returns the payload string containing. |
||
174 | * |
||
175 | * @param \Rinvex\Auth\Contracts\CanVerifyEmailContract $user |
||
176 | * @param string $email |
||
177 | * @param int $expiration |
||
178 | * |
||
179 | * @return string |
||
180 | */ |
||
181 | protected function buildPayload(CanVerifyEmailContract $user, $email, $expiration): string |
||
190 | |||
191 | /** |
||
192 | * Validate an email verification for the given credentials. |
||
193 | * |
||
194 | * @param array $credentials |
||
195 | * |
||
196 | * @return \Rinvex\Auth\Contracts\CanVerifyEmailContract|string |
||
197 | */ |
||
198 | protected function validateVerification(array $credentials) |
||
214 | } |
||
215 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.