]>
Commit | Line | Data |
---|---|---|
e0597476 JB |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\Event; | |
4 | ||
5 | use Symfony\Component\EventDispatcher\Event; | |
6 | use Wallabag\CoreBundle\Entity\Entry; | |
7 | ||
8 | /** | |
9 | * This event is fired as soon as an entry was saved. | |
10 | */ | |
11 | class EntrySavedEvent extends Event | |
12 | { | |
13 | const NAME = 'entry.saved'; | |
14 | ||
15 | protected $entry; | |
16 | ||
17 | public function __construct(Entry $entry) | |
18 | { | |
19 | $this->entry = $entry; | |
20 | } | |
21 | ||
22 | public function getEntry() | |
23 | { | |
24 | return $this->entry; | |
25 | } | |
26 | } |