]>
Commit | Line | Data |
---|---|---|
bf6c0346 TC |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\Event\Activity\Actions\Entry; | |
4 | ||
5 | use Symfony\Component\EventDispatcher\Event; | |
6 | use Wallabag\CoreBundle\Entity\Entry; | |
7 | ||
8 | /** | |
9 | * This event is fired when entry-related stuff is made. | |
10 | */ | |
11 | abstract class EntryEvent extends Event | |
12 | { | |
13 | protected $entry; | |
14 | ||
15 | /** | |
16 | * EntryEvent constructor. | |
17 | * @param Entry $entry | |
18 | */ | |
19 | public function __construct(Entry $entry) | |
20 | { | |
21 | $this->entry = $entry; | |
22 | } | |
23 | ||
24 | /** | |
25 | * @return Entry | |
26 | */ | |
27 | public function getEntry() | |
28 | { | |
29 | return $this->entry; | |
30 | } | |
31 | ||
32 | /** | |
33 | * @param Entry $entry | |
34 | * @return EntryEvent | |
35 | */ | |
36 | public function setEntry(Entry $entry) | |
37 | { | |
38 | $this->entry = $entry; | |
39 | return $this; | |
40 | } | |
41 | } |