PHP Class App\Listeners\NotificationListener

ファイルを表示 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_oe property

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

$pushService protected_oe property

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

$userMailer protected_oe property

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