code: protected function initializeInvoiceSubject()
      {
          $this->invoiceTotal = 0;
          $this->creditTotal = 0;
          $this->invoiceState = InvoiceStates::STATE_NEW;
          $this->invoices = new ArrayCollection();
      }
docs: Initializes the invoices.