getOrder() public method

public getOrder ( ) : cielo\Order
return cielo\Order
 /**
  * @param  Transaction $transaction
  * @param  DOMDocument $document
  * @return \DOMElement
  */
 private function createRequisicaoAutorizacao(Transaction $transaction, DOMDocument $document)
 {
     $autorizacao = $document->createElementNS(RequestSerializer::NS, 'requisicao-autorizacao-tid');
     $autorizacao->setAttribute('id', $transaction->getOrder()->getNumber());
     $autorizacao->setAttribute('versao', RequestSerializer::VERSION);
     $autorizacao->appendChild($document->createElementNS(RequestSerializer::NS, 'tid', $transaction->getTid()));
     $autorizacao->appendChild($this->createDadosEc($transaction, $document));
     return $autorizacao;
 }
 private function readDadosPedido(Transaction $transaction)
 {
     $order = $transaction->getOrder();
     $order->setNumber($this->getValue('//c:transacao/c:dados-pedido/c:numero'));
     $order->setTotal((int) $this->getValue('//c:transacao/c:dados-pedido/c:valor'));
     $order->setCurrency((int) $this->getValue('//c:transacao/c:dados-pedido/c:moeda'));
     $order->setDateTime($this->getValue('//c:transacao/c:dados-pedido/c:data-hora'));
     $order->setDescription($this->getValue('//c:transacao/c:dados-pedido/c:descricao'));
     $order->setLanguage($this->getValue('//c:transacao/c:dados-pedido/c:idioma'));
     $order->setShipping((int) $this->getValue('//c:transacao/c:dados-pedido/c:taxa-embarque'));
 }
 private function createDadosPedido(Transaction $transaction, DOMDocument $document)
 {
     $order = $transaction->getOrder();
     $dadosPedido = $document->createElementNS(TransactionRequestSerializer::NS, 'dados-pedido');
     $dadosPedido->appendChild($document->createElementNS(TransactionRequestSerializer::NS, 'numero', $order->getNumber()));
     $dadosPedido->appendChild($document->createElementNS(TransactionRequestSerializer::NS, 'valor', $order->getTotal()));
     $dadosPedido->appendChild($document->createElementNS(TransactionRequestSerializer::NS, 'moeda', $order->getCurrency()));
     $dadosPedido->appendChild($document->createElementNS(TransactionRequestSerializer::NS, 'data-hora', $order->getDateTime()));
     $dadosPedido->appendChild($document->createElementNS(TransactionRequestSerializer::NS, 'descricao', $order->getDescription()));
     $dadosPedido->appendChild($document->createElementNS(TransactionRequestSerializer::NS, 'idioma', $order->getLanguage()));
     $dadosPedido->appendChild($document->createElementNS(TransactionRequestSerializer::NS, 'taxa-embarque', (int) $order->getShipping()));
     $dadosPedido->appendChild($document->createElementNS(TransactionRequestSerializer::NS, 'soft-descriptor', $order->getSoftDescriptor()));
     return $dadosPedido;
 }