Omnipay\Alipay\Requests\LegacyNotifyRequest::setSort PHP Method

setSort() public method

public setSort ( boolean $sort ) : LegacyNotifyRequest
$sort boolean
return LegacyNotifyRequest
    public function setSort($sort)
    {
        $this->sort = $sort;
        return $this;
    }

Usage Example

 /**
  * Send the request with specified data
  *
  * @param  mixed $data The data to send
  *
  * @return ResponseInterface
  * @throws InvalidRequestException
  */
 public function sendData($data)
 {
     $request = new LegacyNotifyRequest($this->httpClient, $this->httpRequest);
     $request->initialize($this->parameters->all());
     $request->setParams($data);
     $request->setSort(false);
     $request->setAlipayPublicKey($this->getAlipayPublicKey());
     /**
      * @var LegacyNotifyResponse $response
      */
     $response = $request->send();
     return $response;
 }