1 | <?php |
||
8 | class PasswordResetToken |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $token; |
||
14 | |||
15 | /** |
||
16 | * PasswordResetToken constructor. |
||
17 | * |
||
18 | * @param string $token |
||
19 | */ |
||
20 | public function __construct($token) |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getToken() |
||
32 | |||
33 | /** |
||
34 | * @param UserInterface $user |
||
35 | * @param $token |
||
36 | * |
||
37 | * @throws InvalidPasswordResetTokenException |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | public static function validateToken(UserInterface $user, PasswordResetToken $token) |
||
49 | |||
50 | /** |
||
51 | * Generates a PasswordToken |
||
52 | * |
||
53 | * @return PasswordResetToken |
||
54 | */ |
||
55 | public static function generate() |
||
61 | |||
62 | /** |
||
63 | * Check if a token is equal to a different token. |
||
64 | * |
||
65 | * @param PasswordResetToken $token |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function equals(PasswordResetToken $token) |
||
73 | } |
||
74 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.