1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-30 19:22:12 +00:00
wallabag/src/Event/EntrySavedEvent.php

27 lines
441 B
PHP
Raw Normal View History

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