<?php

namespace App\Classes\Modules\Accounts\Services;


use App\Classes\Exceptions\MalformedRequestException;
use App\Classes\General\Eloquent\AbstractUpdateRecord;
use App\Models\PasswordReset;

class ExpiresPasswordReset extends AbstractUpdateRecord
{


    /**
     * @param PasswordReset $model
     * @return \Illuminate\Database\Eloquent\Model
     * @throws MalformedRequestException
     */
    public function execute(PasswordReset $model){

        $model->is_expired = true;
        return $this->handler($model);


    }


}