wallabag/src/Event/EntryDeletedEvent.php
2024-02-23 07:42:48 +01:00

27 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;
}
}