Omnipay\Alipay\Requests\AopNotifyRequest::setSort PHP Méthode

setSort() public méthode

public setSort ( boolean $sort ) : AopNotifyRequest
$sort boolean
Résultat AopNotifyRequest
    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 AopNotifyRequest($this->httpClient, $this->httpRequest);
     $request->initialize($this->parameters->all());
     $request->setEndpoint($this->getEndpoint());
     $request->setParams($data);
     $request->setSort(false);
     $request->setEncodePolicy(Signer::ENCODE_POLICY_JSON);
     $request->setAlipayPublicKey($this->getAlipayPublicKey());
     /**
      * @var AopNotifyResponse $response
      */
     $response = $request->send();
     return $response;
 }