src/Sulu/Component/Webspace/Environment.php
private function setMainUrl(Url $url)
    {
        if (null !== $this->mainUrl) {
            $this->mainUrl->setMain(false);
        }

        $this->mainUrl = $url;
        $this->mainUrl->setMain(true);
    }
private function setMainUrl(Url $url)
    {
        if (null !== $this->mainUrl) {
            $this->mainUrl->setMain(false);
        }

        $this->mainUrl = $url;
        $this->mainUrl->setMain(true);
    }
private function setMainUrl ( Url $ url ) { if ( null !== $ this -> mainUrl ) { $ this -> mainUrl -> setMain ( false ) ; } $ this -> mainUrl = $ url ; $ this -> mainUrl -> setMain ( true ) ; }
Sets the main url.

@param Url $url
Sets the main url .