public function __construct(MapRequest $mapData, TileSource $source) { $this->_mapData = $mapData; $this->_tileSource = $source; if (!is_null($this->_mapData->getZoom())) { $this->_worldMap = $source->getWorldMap($this->_mapData->getZoom()); } $this->_requestValidator->check(); }