invoiceninja/app/Listeners/QuoteListener.php
Holger Lösken 0fbda85a59 Code Refactoring
- Removed unused uses
- Type hinting for method parameters
- Removed commented code
- Introduced comments for classes and methods
- Short array syntax
2016-07-03 16:19:22 +00:00

19 lines
345 B
PHP

<?php namespace App\Listeners;
use App\Events\QuoteInvitationWasViewed;
/**
* Class QuoteListener
*/
class QuoteListener
{
/**
* @param QuoteInvitationWasViewed $event
*/
public function viewedQuote(QuoteInvitationWasViewed $event)
{
$invitation = $event->invitation;
$invitation->markViewed();
}
}