public function getPasswordResetTokenRules()
    {
        if (!is_string($this->passwordResetTokenAttribute) || empty($this->passwordResetTokenAttribute)) {
            return [];
        }
        if (empty($this->passwordResetTokenRules) || !is_array($this->passwordResetTokenRules)) {
            $this->passwordResetTokenRules = [
                [[$this->passwordResetTokenAttribute], 'string', 'length' => 40],
                [[$this->passwordResetTokenAttribute], 'unique'],
            ];
        }
        return $this->passwordResetTokenRules;
    }
public function getPasswordResetTokenRules()
    {
        if (!is_string($this->passwordResetTokenAttribute) || empty($this->passwordResetTokenAttribute)) {
            return [];
        }
        if (empty($this->passwordResetTokenRules) || !is_array($this->passwordResetTokenRules)) {
            $this->passwordResetTokenRules = [
                [[$this->passwordResetTokenAttribute], 'string', 'length' => 40],
                [[$this->passwordResetTokenAttribute], 'unique'],
            ];
        }
        return $this->passwordResetTokenRules;
    }
public function getPasswordResetTokenRules ( ) { if ( ! is_string ( $ this -> passwordResetTokenAttribute ) || empty ( $ this -> passwordResetTokenAttribute ) ) { return [ ] ; } if ( empty ( $ this -> passwordResetTokenRules ) || ! is_array ( $ this -> passwordResetTokenRules ) ) { $ this -> passwordResetTokenRules = [ [ [ $ this -> passwordResetTokenAttribute ] , 'string' , 'length' => 40 ] , [ [ $ this -> passwordResetTokenAttribute ] , 'unique' ] , ] ; } return $ this -> passwordResetTokenRules ; }
Get the rules associated with password reset token attribute.
If password reset feature is not enabled, the empty array will be given.
@return mixed
Get the rules associated with password reset token attribute . If password reset feature is not enabled the empty array will be given .