Documentation

InvoiceGeneratingMail extends AbstractClientMail
in package

InvoiceGeneratingMail

This mailable handle the invoice generating notification for the user

Tags
improve

this class should be refactored using a base class handling all the retrieving of user data, sending, ...

Table of Contents

$companyName  : string
$email  : string
$firstName  : string
$lastName  : string
$customer  : CustomerResource|stdClass|Customer
$invoiceDate  : Carbon
__construct()  : mixed
InvoiceGeneratingMail
content()  : Content

Properties

$invoiceDate read-only

private Carbon $invoiceDate = new Carbon('first day of next month 00:00')

Methods

__construct()

InvoiceGeneratingMail

public __construct(CustomerResource|stdClass $customer[, Carbon $invoiceDate = new Carbon('first day of next month 00:00') ]) : mixed
Parameters
$customer : CustomerResource|stdClass

the customer

$invoiceDate : Carbon = new Carbon('first day of next month 00:00')

the date when the invoice is being generated

Tags
throws
ResourceNotFoundException

if customer is not a valid customer resource

Return values
mixed

content()

public content() : Content
Return values
Content

the rendered content of the email

Search results