mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-01-04 04:00:52 -05:00
20 lines
414 B
PHP
20 lines
414 B
PHP
<?php namespace app\Listeners;
|
|
|
|
use App\Events\QuoteWasEmailed;
|
|
use App\Events\QuoteInvitationWasViewed;
|
|
|
|
class QuoteListener
|
|
{
|
|
public function emailedQuote(QuoteWasEmailed $event)
|
|
{
|
|
$quote = $event->quote;
|
|
$quote->markSent();
|
|
}
|
|
|
|
public function viewedQuote(QuoteInvitationWasViewed $event)
|
|
{
|
|
$invitation = $event->invitation;
|
|
$invitation->markViewed();
|
|
}
|
|
}
|