/** * Send a reminder for the invoice * @param InvoiceService $service * @param string $method Send method (email|hand|post); default: email * @param type $email Address to send to; default: contact e-mail * @param type $message * @return self * @throws InvalidStateException */ public function remind(InvoiceService $service, $method = 'email', $email = null, $message = null) { if ($this->state == 'draft') { throw new InvalidStateException('Send invoice before reminding'); } return $this->reload($service->remind($this, $method, $email, $message)); }
/** * Get all invoices of this template * * @return InvoiceArray * @param InvoiceService $service * @param string $filter * @access public */ public function getInvoices(InvoiceService $service, $filter = null) { return $service->getAll($filter, $this); }