public function create($from, $to, $idRoute, $idTotal, $totalValue, $channelSell = null) { $channelSell = $channelSell ?: Order::CHANNEL_DESKTOP; $this->order->setFrom($from)->setTo($to)->setIdRoute($idRoute)->setIdTotal($idTotal)->setTotal($totalValue)->setPayments($this->paymentsCollection)->setTickets($this->ticketsCollection)->setChannelSell($channelSell); return $this->order; }