code: public function reverse()
      {
          $items = array_reverse($this->items);
  
          $col = new static ($this->type);
          $col->setItemsFromTrustedSource($items);
  
          return $col;
      }
docs: {@inheritdoc}
  @throws InvalidArgumentException