original_string: public function user(string $ticket, bool $needPoi = false)
      {
          $params = [
              'ticket' => $ticket,
          ];
  
          if ($needPoi) {
              $params['need_poi'] = 1;
          }
  
          return $this->httpPostJson('shakearound/user/getshakeinfo', $params);
      }
code: public function user(string $ticket, bool $needPoi = false)
      {
          $params = [
              'ticket' => $ticket,
          ];
  
          if ($needPoi) {
              $params['need_poi'] = 1;
          }
  
          return $this->httpPostJson('shakearound/user/getshakeinfo', $params);
      }
code_tokens: public function user ( string $ ticket , bool $ needPoi = false ) { $ params = [ 'ticket' => $ ticket , ] ; if ( $ needPoi ) { $ params [ 'need_poi' ] = 1 ; } return $ this -> httpPostJson ( 'shakearound/user/getshakeinfo' , $ params ) ; }
docstring: Get shake info.
  
  @param string $ticket
  @param bool   $needPoi
  
  @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
docstring_tokens: Get shake info .