wallabag/src/Event/EntryDeletedEvent.php

27 lines
446 B
PHP
Raw Normal View History

<?php
2024-02-19 00:30:12 +00:00
namespace Wallabag\Event;
use Symfony\Contracts\EventDispatcher\Event;
2024-02-19 00:30:12 +00:00
use Wallabag\Entity\Entry;
/**
* This event is fired as soon as an entry is deleted.
*/
class EntryDeletedEvent extends Event
{
2022-12-13 09:26:51 +00:00
public const NAME = 'entry.deleted';
protected $entry;
public function __construct(Entry $entry)
{
$this->entry = $entry;
}
public function getEntry(): Entry
{
return $this->entry;
}
}