public function getProgress() { // TODO: following condition should be removed on 2.0 line // and method should be added to ConfigInterface if (!method_exists($this->config, 'getHideProgress')) { return $this->options['progress']; } return $this->options['progress'] && !$this->config->getHideProgress(); }
/** * Resolve progress based on progress option and config instance. */ private function resolveProgress() { $this->progress = $this->options['progress'] && !$this->config->getHideProgress(); }