/**
  * @param Stat $stat
  * @param $request
  */
 public function __construct(Stat $stat, $request)
 {
     $this->entity = $stat;
     $this->notification = $stat->getNotification();
     $this->request = $request;
 }
Esempio n. 2
0
 /**
  * @param Notification $notification
  * @param Lead         $lead
  * @param string       $source
  */
 public function createStatEntry(Notification $notification, Lead $lead, $source = null)
 {
     $stat = new Stat();
     $stat->setDateSent(new \DateTime());
     $stat->setLead($lead);
     $stat->setNotification($notification);
     $stat->setSource($source);
     $this->getStatRepository()->saveEntity($stat);
 }