blob: 998b56d50b9a4fbeab55a18cbb632bbe9c7b9007 (
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
42
43
|
<?php
namespace Wallabag\CoreBundle\Event\Activity\Actions\Federation;
use Symfony\Component\EventDispatcher\Event;
use Wallabag\CoreBundle\Entity\Entry;
/**
* This event is fired as soon as an entry was recommended.
*/
class RecommendedEntryEvent extends Event
{
const NAME = 'federation.recommend';
protected $entry;
/**
* FederationEvent constructor.
* @param Entry $entry
*/
public function __construct(Entry $entry)
{
$this->entry = $entry;
}
/**
* @return Entry
*/
public function getEntry()
{
return $this->entry;
}
/**
* @param Entry $entry
* @return RecommendedEntryEvent
*/
public function setEntry(Entry $entry)
{
$this->entry = $entry;
return $this;
}
}
|