original_string: public function messages($startTime, $endTime, int $msgId = 1, int $number = 10000)
      {
          $params = [
              'starttime' => is_numeric($startTime) ? $startTime : strtotime($startTime),
              'endtime' => is_numeric($endTime) ? $endTime : strtotime($endTime),
              'msgid' => $msgId,
              'number' => $number,
          ];
  
          return $this->httpPostJson('customservice/msgrecord/getmsglist', $params);
      }
code: public function messages($startTime, $endTime, int $msgId = 1, int $number = 10000)
      {
          $params = [
              'starttime' => is_numeric($startTime) ? $startTime : strtotime($startTime),
              'endtime' => is_numeric($endTime) ? $endTime : strtotime($endTime),
              'msgid' => $msgId,
              'number' => $number,
          ];
  
          return $this->httpPostJson('customservice/msgrecord/getmsglist', $params);
      }
code_tokens: public function messages ( $ startTime , $ endTime , int $ msgId = 1 , int $ number = 10000 ) { $ params = [ 'starttime' => is_numeric ( $ startTime ) ? $ startTime : strtotime ( $ startTime ) , 'endtime' => is_numeric ( $ endTime ) ? $ endTime : strtotime ( $ endTime ) , 'msgid' => $ msgId , 'number' => $ number , ] ; return $ this -> httpPostJson ( 'customservice/msgrecord/getmsglist' , $ params ) ; }
docstring: Get messages history.
  
  @param int $startTime
  @param int $endTime
  @param int $msgId
  @param int $number
  
  @return mixed
docstring_tokens: Get messages history .