App\Listeners\SubscriptionListener::createdInvoice PHP Method

createdInvoice() public method

public createdInvoice ( InvoiceWasCreated $event )
$event App\Events\InvoiceWasCreated
    public function createdInvoice(InvoiceWasCreated $event)
    {
        $transformer = new InvoiceTransformer($event->invoice->account);
        $this->checkSubscriptions(EVENT_CREATE_INVOICE, $event->invoice, $transformer, ENTITY_CLIENT);
    }