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