code: public function setTypes(array $types)
      {
          $pattern = '/'.preg_quote($this->getTypesContent(), '/').'/';
  
          $this->lines[0]->setContent(Preg::replace($pattern, implode('|', $types), $this->lines[0]->getContent(), 1));
  
          $this->clearCache();
      }
docs: Set the types associated with this annotation.
  
  @param string[] $types