code: public function setFilterType($pFilterType)
      {
          if (!in_array($pFilterType, self::$filterTypes)) {
              throw new PhpSpreadsheetException('Invalid filter type for column AutoFilter.');
          }
  
          $this->filterType = $pFilterType;
  
          return $this;
      }
docs: Set AutoFilter Type.
  
  @param string $pFilterType
  
  @throws PhpSpreadsheetException
  
  @return Column