/** * 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); }
/** * 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; }