Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param ProfilerEvent   $event
  * @param ReportInterface $report
  */
 public function __construct(ProfilerEvent $event, ReportInterface $report)
 {
     $this->event = $event;
     $this->report = $report;
     $this->event->setTarget($this);
     $this->event->setProfiler($this)->setReport($report);
 }
Exemplo n.º 2
0
 /**
  * Returns the profiler event object.
  *
  * @return self
  */
 public function getEvent()
 {
     if (!isset($this->event)) {
         $this->event = new ProfilerEvent();
         $this->event->setTarget($this);
         $this->event->setProfiler($this);
     }
     return $this->event;
 }