code: public function getTypes()
      {
          if (null === $this->types) {
              $this->types = [];
  
              $content = $this->getTypesContent();
  
              while ('' !== $content && false !== $content) {
                  Preg::match(
                      '{^'.self::REGEX_TYPES.'$}x',
                      $content,
                      $matches
                  );
  
                  $this->types[] = $matches['type'];
                  $content = substr($content, \strlen($matches['type']) + 1);
              }
          }
  
          return $this->types;
      }
docs: Get the types associated with this annotation.
  
  @return string[]