protected function setMap($map)
    {
        $logger = $this->getLogger();
        if (is_array($map)) {
            $map = new Map($map, $logger);
        } elseif ($map instanceof DriverInterface) {
            $map = $map->getMap();
            $map->setLogger($logger);
        } elseif ($map instanceof MapInterface) {
            $map->setLogger($logger);
        } else {
            throw new \LogicException('Invalid map passed to Zumba\Swivel\Config');
        }
        $this->map = $map;
    }
protected function setMap($map)
    {
        $logger = $this->getLogger();
        if (is_array($map)) {
            $map = new Map($map, $logger);
        } elseif ($map instanceof DriverInterface) {
            $map = $map->getMap();
            $map->setLogger($logger);
        } elseif ($map instanceof MapInterface) {
            $map->setLogger($logger);
        } else {
            throw new \LogicException('Invalid map passed to Zumba\Swivel\Config');
        }
        $this->map = $map;
    }
protected function setMap ( $ map ) { $ logger = $ this -> getLogger ( ) ; if ( is_array ( $ map ) ) { $ map = new Map ( $ map , $ logger ) ; } elseif ( $ map instanceof DriverInterface ) { $ map = $ map -> getMap ( ) ; $ map -> setLogger ( $ logger ) ; } elseif ( $ map instanceof MapInterface ) { $ map -> setLogger ( $ logger ) ; } else { throw new \ LogicException ( 'Invalid map passed to Zumba\Swivel\Config' ) ; } $ this -> map = $ map ; }
Set the Zumba\Swivel\Map object.

@param mixed $map
Set the Zumba \ Swivel \ Map object .