1 | <?php |
||
21 | class SecurityUserDao implements UserDaoInterface, ForgotYourPasswordDao |
||
22 | { |
||
23 | /** |
||
24 | * @var TDBMService |
||
25 | */ |
||
26 | protected $tdbmService; |
||
27 | |||
28 | /** |
||
29 | * Sets the TDBM service used by this DAO. |
||
30 | * |
||
31 | * @param TDBMService $tdbmService |
||
32 | */ |
||
33 | public function __construct(TDBMService $tdbmService) |
||
37 | |||
38 | /** |
||
39 | * Returns a user from its login and its password, or null if the login or credentials are false. |
||
40 | * |
||
41 | * @param string $login |
||
42 | * @param string $password |
||
43 | * |
||
44 | * @return UserInterface |
||
45 | */ |
||
46 | public function getUserByCredentials($login, $password) |
||
59 | |||
60 | /** |
||
61 | * Returns a user from its token. |
||
62 | * |
||
63 | * @param string $token |
||
64 | * |
||
65 | * @return UserInterface |
||
66 | */ |
||
67 | public function getUserByToken($token) |
||
76 | |||
77 | /** |
||
78 | * Discards a token. |
||
79 | * |
||
80 | * @param string $token |
||
81 | */ |
||
82 | public function discardToken($token) |
||
88 | |||
89 | /** |
||
90 | * Returns a user from its ID. |
||
91 | * |
||
92 | * @param string $id |
||
93 | * |
||
94 | * @return UserInterface |
||
95 | */ |
||
96 | public function getUserById($id) |
||
100 | |||
101 | /** |
||
102 | * Returns a user from its login. |
||
103 | * |
||
104 | * @param string $login |
||
105 | * |
||
106 | * @return UserInterface |
||
107 | */ |
||
108 | public function getUserByLogin($login) |
||
112 | |||
113 | /** |
||
114 | * Get a single UserBean specified by its filters. |
||
115 | * |
||
116 | * @param mixed $filter The filter bag (see TDBMService::findObjects for complete description) |
||
117 | * @param array $parameters The parameters associated with the filter |
||
118 | * |
||
119 | * @return UserInterface|null |
||
120 | */ |
||
121 | private function findOne($filter = null, array $parameters = []) |
||
125 | |||
126 | /** |
||
127 | * Sets $token for user whose mail is $email, stores the token in database. |
||
128 | * Throws an EmailNotFoundException if the email is not part of the database. |
||
129 | * |
||
130 | * @param string $email |
||
131 | * |
||
132 | * @throws \Mouf\Security\Password\Api\EmailNotFoundException |
||
133 | */ |
||
134 | public function setToken(string $email, string $token) |
||
146 | |||
147 | /** |
||
148 | * Sets the password matching to $token and discards $token. |
||
149 | * Throws an TokenNotFoundException if the token is not part of the database. |
||
150 | * |
||
151 | * @param string $token |
||
152 | * @param string $password |
||
153 | * |
||
154 | * @throws \Mouf\Security\Password\Api\TokenNotFoundException |
||
155 | */ |
||
156 | public function setPasswordAndDiscardToken(string $token, string $password) |
||
163 | } |
||
164 |
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.