PHP Class App\Ninja\Mailers\ContactMailer

Inheritance: extends App\Ninja\Mailers\Mailer
Show file Open project: hillelcoren/invoice-ninja Class Usage Examples

Public Properties

Property Type Description
$variableFields array

Protected Properties

Property Type Description
$templateService App\services\TemplateService

Public Methods

Method Description
__construct ( TemplateService $templateService ) ContactMailer constructor.
sendInvoice ( Invoice $invoice, boolean $reminder = false, boolean $pdfString = false ) : boolean | null | string
sendLicensePaymentConfirmation ( $name, $email, $amount, $license, $productId )
sendPaymentConfirmation ( Payment $payment )

Protected Methods

Method Description
generatePassword ( integer $length = 9 ) : string

Private Methods

Method Description
sendInvitation ( Invitation $invitation, Invoice $invoice, $body, $subject, $pdfString, $documentStrings ) : boolean | string

Method Details

__construct() public method

ContactMailer constructor.
public __construct ( TemplateService $templateService )
$templateService App\services\TemplateService

generatePassword() protected method

protected generatePassword ( integer $length = 9 ) : string
$length integer
return string

sendInvoice() public method

public sendInvoice ( Invoice $invoice, boolean $reminder = false, boolean $pdfString = false ) : boolean | null | string
$invoice app\models\Invoice
$reminder boolean
$pdfString boolean
return boolean | null | string

sendLicensePaymentConfirmation() public method

public sendLicensePaymentConfirmation ( $name, $email, $amount, $license, $productId )
$name
$email
$amount
$license
$productId

sendPaymentConfirmation() public method

public sendPaymentConfirmation ( Payment $payment )
$payment app\models\Payment

Property Details

$templateService protected property

protected TemplateService,App\Services $templateService
return App\services\TemplateService

$variableFields public static property

public static array $variableFields
return array