| Conditions | 4 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function __construct($token, \common\models\User $user, $config = []) { |
||
| 29 | if (empty($token) || !is_string($token)) { |
||
| 30 | throw new InvalidArgumentException('Password reset token cannot be blank.'); |
||
| 31 | } |
||
| 32 | $this->_user = $user->findByPasswordResetToken($token); |
||
| 33 | if (!$this->_user) { |
||
| 34 | throw new InvalidArgumentException('Wrong password reset token.'); |
||
| 35 | } |
||
| 36 | parent::__construct($config); |
||
| 37 | } |
||
| 64 |