wallabag/src/Wallabag/CoreBundle/Event/EntrySavedEvent.php

27 lines
449 B
PHP
Raw Normal View History

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