/** * @param Follower $follow * @param DatabaseManager $db */ function __construct(Follower $follow, DatabaseManager $db) { $this->follow = $follow; $this->db = $db; parent::__construct($this->follow, $this->db); }
/** * Count following * * @return mixed */ public function countFollowing() { // check that there are the informations of the follower $this->checkFollowerInformation(); return $this->rallyRepository->countFollowing($this->follower); }