PHP Class App\Listeners\NotificationListener

Show file Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$contactMailer App\Ninja\Mailers\ContactMailer
$pushService App\services\PushService
$userMailer App\Ninja\Mailers\UserMailer

Public Methods

Method Description
__construct ( UserMailer $userMailer, ContactMailer $contactMailer, PushService $pushService ) NotificationListener constructor.
approvedQuote ( QuoteInvitationWasApproved $event )
createdPayment ( PaymentWasCreated $event )
emailedInvoice ( InvoiceWasEmailed $event )
emailedQuote ( QuoteWasEmailed $event )
viewedInvoice ( InvoiceInvitationWasViewed $event )
viewedQuote ( QuoteInvitationWasViewed $event )

Private Methods

Method Description
sendEmails ( $invoice, $type, null $payment = null )

Method Details

__construct() public method

NotificationListener constructor.
public __construct ( UserMailer $userMailer, ContactMailer $contactMailer, PushService $pushService )
$userMailer App\Ninja\Mailers\UserMailer
$contactMailer App\Ninja\Mailers\ContactMailer
$pushService App\services\PushService

approvedQuote() public method

public approvedQuote ( QuoteInvitationWasApproved $event )
$event app\events\QuoteInvitationWasApproved

createdPayment() public method

public createdPayment ( PaymentWasCreated $event )
$event app\events\PaymentWasCreated

emailedInvoice() public method

public emailedInvoice ( InvoiceWasEmailed $event )
$event app\events\InvoiceWasEmailed

emailedQuote() public method

public emailedQuote ( QuoteWasEmailed $event )
$event app\events\QuoteWasEmailed

viewedInvoice() public method

public viewedInvoice ( InvoiceInvitationWasViewed $event )
$event app\events\InvoiceInvitationWasViewed

viewedQuote() public method

public viewedQuote ( QuoteInvitationWasViewed $event )
$event app\events\QuoteInvitationWasViewed

Property Details

$contactMailer protected property

protected ContactMailer,App\Ninja\Mailers $contactMailer
return App\Ninja\Mailers\ContactMailer

$pushService protected property

protected PushService,App\Services $pushService
return App\services\PushService

$userMailer protected property

protected UserMailer,App\Ninja\Mailers $userMailer
return App\Ninja\Mailers\UserMailer