withType(EmailActivation::TYPE_FORGOT_PASSWORD_KEY); } public function behaviors(): array { return ArrayHelper::merge(parent::behaviors(), [ 'expirationBehavior' => [ 'repeatTimeout' => 30 * 60, 'expirationTimeout' => 1 * 60 * 60, ], ]); } public function init(): void { parent::init(); $this->type = EmailActivation::TYPE_FORGOT_PASSWORD_KEY; } }