/** * @param \LW\Statistics\StatisticsProviderInterface $provider * @param string $method * @param array $args * @return string|int|array */ protected function call(StatisticsProviderInterface $provider, $method, $args) { if ($this->period) { $this->period->apply($provider); } if ($this->interval) { return $this->callInterval($provider, $method, $args); } return call_user_func_array([$provider, $method], $args); }