Esempio n. 1
0
 /**
  * @inheritDoc
  */
 public function attachProbe(Probe $probe) : Box
 {
     $this->box->attachProbe($probe);
     return $this;
 }
Esempio n. 2
0
 /**
  * @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;
 }