2016-11-01 14:49:02 +01:00
|
|
|
<?php
|
|
|
|
|
2024-02-19 01:30:12 +01:00
|
|
|
namespace Wallabag\Event;
|
2016-11-01 14:49:02 +01:00
|
|
|
|
2022-12-15 21:47:31 +01:00
|
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
2024-02-19 01:30:12 +01:00
|
|
|
use Wallabag\Entity\Entry;
|
2016-11-01 14:49:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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';
|
2016-11-01 14:49:02 +01:00
|
|
|
|
|
|
|
protected $entry;
|
|
|
|
|
|
|
|
public function __construct(Entry $entry)
|
|
|
|
{
|
|
|
|
$this->entry = $entry;
|
|
|
|
}
|
|
|
|
|
2022-12-15 21:47:31 +01:00
|
|
|
public function getEntry(): Entry
|
2016-11-01 14:49:02 +01:00
|
|
|
{
|
|
|
|
return $this->entry;
|
|
|
|
}
|
|
|
|
}
|