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

27 lines
441 B
PHP

<?php
namespace Wallabag\Event;
use Symfony\Contracts\EventDispatcher\Event;
use Wallabag\Entity\Entry;
/**
* This event is fired as soon as an entry was saved.
*/
class EntrySavedEvent extends Event
{
public const NAME = 'entry.saved';
protected $entry;
public function __construct(Entry $entry)
{
$this->entry = $entry;
}
public function getEntry(): Entry
{
return $this->entry;
}
}