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