code: protected function removeRule($rule)
      {
          if (isset($this->rules[$rule->name])) {
              unset($this->rules[$rule->name]);
              foreach ($this->items as $item) {
                  if ($item->ruleName === $rule->name) {
                      $item->ruleName = null;
                  }
              }
              $this->saveRules();
              return true;
          }
  
          return false;
      }
docs: {@inheritdoc}