blob: 4004932ee2734fc15a9ea0584c08c4fc9aea919b (
plain) (
tree)
|
|
<?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;
}
}
|