/** * @inheritDoc */ public function attachProbe(Probe $probe) : Box { $this->box->attachProbe($probe); return $this; }
/** * @inheritDoc */ public function attach(Box $box) : Probe { $box->attachObserver([$this, 'onPreRun'], static::EVENT_START_TIME); $box->attachObserver([$this, 'onPostRun'], static::EVENT_END_TIME); return $this; }