code: public function isType($types)
      {
          if (!\is_array($types)) {
              $types = [$types];
          }
  
          return \in_array($this->getType(), $types, true);
      }
docs: Returns whether the token type is one of the given types.
  
  @param int|int[] $types
  
  @return bool