code: public function setFilterItems(array $filterItems)
      {
          $this->filterItems = [];
  
          foreach ($filterItems as $item) {
              $this->addFilterItem($item);
          }
  
          return $this;
      }
docs: Sets the "filterItems" of the FilterItem.
  
  @param FilterItem[] $filterItems
  
  @return FilterItem