Esempio n. 1
0
 /**
  * @Pre\Subscribe
  * @param Click $click
  */
 public function registerClick(Click $click)
 {
     $mailing = $this->repository->find($click->mailingId());
     $mailing->click($click);
     $logger = LoggerFactory::getLogger(__CLASS__);
     $logger->debug("Mailing with ID {} has been clicked", [$mailing->getId()]);
 }
Esempio n. 2
0
 /**
  * @Pre\Subscribe
  * @param Click $click
  */
 public function forClick(Click $click)
 {
     $logger = LoggerFactory::getLogger(__CLASS__);
     $logger->info("Reward for clicking mailing mailing with ID {} was given", [$click->mailingId()]);
 }
Esempio n. 3
0
 /**
  * @Pre\Subscribe
  * @param Click $click
  */
 public function giveRewardFor(Click $click)
 {
     $logger = LoggerFactory::getLogger(__CLASS__);
     $logger->debug("User '{}' has been rewarded for clicking on mailing '{}'", [$click->userId(), $click->mailingId()]);
 }