forked from wallabag/wallabag
Move source files directly under src/ directory
This commit is contained in:
26
src/Event/EntryDeletedEvent.php
Normal file
26
src/Event/EntryDeletedEvent.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Wallabag\CoreBundle\Event;
|
||||
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
use Wallabag\CoreBundle\Entity\Entry;
|
||||
|
||||
/**
|
||||
* This event is fired as soon as an entry is deleted.
|
||||
*/
|
||||
class EntryDeletedEvent extends Event
|
||||
{
|
||||
public const NAME = 'entry.deleted';
|
||||
|
||||
protected $entry;
|
||||
|
||||
public function __construct(Entry $entry)
|
||||
{
|
||||
$this->entry = $entry;
|
||||
}
|
||||
|
||||
public function getEntry(): Entry
|
||||
{
|
||||
return $this->entry;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user