code: public function setRequestInfo(RequestInfo $requestInfo)
      {
          if (isset($requestInfo) && $requestInfo instanceof RequestInfo) {
              $this->requestInfo = $requestInfo;
          } else {
              throw new RJsonError('requestInfo is wrong');
          }
          return $this;
      }
docs: 设置请求信息
  @param RequestInfo $requestInfo
  @return $this
  @throws RJsonError