code: public static function allRules()
      {
          if (! self::$initRules) {
              static::$rules     = array_merge(static::defaultRules(), self::securityRules(), self::$rules);
              static::$initRules = true;
          }
  
          return self::$rules;
      }
docs: Returns all global validation rules.
  
  @return ValidationRule[]
  
  @api