Exemple #1
0
 /**
  * @param Response\Response $response
  */
 private function setSuccess($response)
 {
     $response->setSuccess($response->getApiResponse('Complete') === 'true' && (int) $response->getApiResponse('ResponseCode') < 50);
 }
 /**
  * @param Response\Response $response
  * @param string $method
  * @param callable $success
  * @param callable $failure
  */
 protected function execute(Response\Response $response, $method, callable $success, callable $failure)
 {
     $response->execute([$this, sprintf('%sResponse', $method)], $success, $failure);
 }