setCancellationInformation() public method

public setCancellationInformation ( cielo\CancellationInformation $cancellationInformation )
$cancellationInformation cielo\CancellationInformation
 /**
  * @param Transaction $transaction
  */
 private function readCancellation($transaction)
 {
     $cancellationInformation = new CancellationInformation();
     $cancellationInformation->setCode($this->getValue('//c:transacao/c:cancelamentos/c:cancelamento/c:codigo'));
     $cancellationInformation->setMessage($this->getValue('//c:transacao/c:cancelamentos/c:cancelamento/c:mensagem'));
     $cancellationInformation->setDateTime($this->getValue('//c:transacao/c:cancelamentos/c:cancelamento/c:data-hora'));
     $cancellationInformation->setValue($this->getValue('//c:transacao/c:cancelamentos/c:cancelamento/c:valor'));
     $transaction->setCancellationInformation($cancellationInformation);
 }