blob: 4004932ee2734fc15a9ea0584c08c4fc9aea919b (
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
|
<?php
namespace Wallabag\CoreBundle\Event\Activity\Actions\Federation;
use Wallabag\FederationBundle\Entity\Account;
/**
* This event is fired as soon as an account was followed.
*/
class FollowEvent extends FederationEvent
{
const NAME = 'federation.follow';
protected $follower;
public function __construct(Account $accountFollowed, Account $follower)
{
parent::__construct($accountFollowed);
$this->follower = $follower;
}
/**
* @return Account
*/
public function getFollower()
{
return $this->follower;
}
/**
* @param Account $follower
* @return FollowEvent
*/
public function setFollower(Account $follower)
{
$this->follower = $follower;
return $this;
}
}
|