original_string: public static function isSocketType($packet, string $typeName)
      {
          $type = array_search(strtoupper($typeName), static::$socketTypes);
  
          if ($type === false) {
              return false;
          }
  
          return static::getSocketType($packet) === $type;
      }
code: public static function isSocketType($packet, string $typeName)
      {
          $type = array_search(strtoupper($typeName), static::$socketTypes);
  
          if ($type === false) {
              return false;
          }
  
          return static::getSocketType($packet) === $type;
      }
code_tokens: public static function isSocketType ( $ packet , string $ typeName ) { $ type = array_search ( strtoupper ( $ typeName ) , static :: $ socketTypes ) ; if ( $ type === false ) { return false ; } return static :: getSocketType ( $ packet ) === $ type ; }
docstring: Return if a socket packet belongs to specific type.
  
  @param $packet
  @param string $typeName
  
  @return bool
docstring_tokens: Return if a socket packet belongs to specific type .