/** * Marks this topic as read by a certain user. * * @param FrontendUser $supporter The user who read this topic. * @return void */ public function addSupporter(FrontendUser $supporter) { $this->setHelpfulCount($this->getHelpfulCount() + 1); $this->supporters->attach($supporter); }
/** * Add a user to this tag * * @param $feuser FrontendUser */ public function addFeuser(FrontendUser $feuser) { $this->feuser->attach($feuser); }
/** * Marks this forum as read by a certain user. * * @param FrontendUser $reader The user who read this forum. * * @return void */ public function addReader(FrontendUser $reader) { $this->readers->attach($reader); }
/** * Adds a new subscriber. * * @param \Mittwald\Typo3Forum\Domain\Model\User\FrontendUser $user The new subscriber. * * @return void */ public function addSubscriber(\Mittwald\Typo3Forum\Domain\Model\User\FrontendUser $user) { $this->subscribers->attach($user); }