mirror of
https://github.com/wallabag/wallabag.git
synced 2024-09-27 14:00:15 +00:00
26 lines
446 B
PHP
26 lines
446 B
PHP
<?php
|
|
|
|
namespace Wallabag\Event;
|
|
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
use Wallabag\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;
|
|
}
|
|
}
|