| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 29 | public function __construct($token, $config = []) | ||
| 30 |     { | ||
| 31 |         if (empty($token) || !is_string($token)) { | ||
| 32 |             throw new InvalidParamException('Password reset token cannot be blank.'); | ||
| 33 | } | ||
| 34 |         $userClass = Yii::$app->get('auth')->modelMap['user']['class']; | ||
| 35 | $this->_user = $userClass::findByPasswordResetToken($token); | ||
| 36 |         if (!$this->_user) { | ||
| 37 |             throw new InvalidParamException('Wrong password reset token.'); | ||
| 38 | } | ||
| 39 | parent::__construct($config); | ||
| 40 | } | ||
| 41 | |||
| 67 |