public function __construct(Config $config, array $data) { $this->config = $config; $this->data = $data; $this->parser = $this->config->getParser(); $this->sort = $this->config->getSortObject(); $this->distance = $this->config->GetDistanceObject(); }