/** * @param bool $force * @return array * @throws NotFoundException * @throws \RuntimeException */ public function getTicketOriginalData() { if ($this->getExpenseId()) { $ticketDomain = $this->dao->getTicketSimpleData($this->getExpenseId()); if ($ticketDomain) { $this->expenseTicketOrignalData = ['id' => $ticketDomain->getId(), 'account_id' => $ticketDomain->getAccountId(), 'account_reference' => $ticketDomain->getAccountReference(), 'creator_id' => $ticketDomain->getCreatorId(), 'manager_id' => $ticketDomain->getManagerId(), 'currency_id' => $ticketDomain->getCurrencyId(), 'date_created' => $ticketDomain->getDateCreated(), 'purpose' => $ticketDomain->getDateCreated(), 'ticket_balance' => $ticketDomain->getTicketBalance(), 'deposit_balance' => $ticketDomain->getDepositBalance()]; } else { throw new NotFoundException('Expense not found.'); } } else { throw new \RuntimeException('Expense not identified.'); } return $this->expenseTicketOrignalData; }