/** * {@inheritdoc} */ public function get($invalidation = 0, $arg = null, $arg2 = null) { $result = parent::get($invalidation, $arg, $arg2); if (isset($this->tracker)) { $miss = $this->isMiss(); $key = $this->getKey(); $this->tracker->trackRequest($key, !$miss, $result); } return $result; }
protected function getPopulatedTracker($name) { $tracker = new Tracker($name); $data = $this->getData(); foreach ($data as $datum) { $tracker->trackRequest($datum[0], $datum[1], $datum[2]); } return $tracker; }