public function setSite($site)
    {
        if ($site === null) {
            $this->siteId = null;
            $this->site = null;

            return;
        }
        $this->siteId = $site->getSiteId();

        $this->site = $site;
    }
public function setSite($site)
    {
        if ($site === null) {
            $this->siteId = null;
            $this->site = null;

            return;
        }
        $this->siteId = $site->getSiteId();

        $this->site = $site;
    }
public function setSite ( $ site ) { if ( $ site === null ) { $ this -> siteId = null ; $ this -> site = null ; return ; } $ this -> siteId = $ site -> getSiteId ( ) ; $ this -> site = $ site ; }
Set the Site the redirect belongs to

@param \Rcm\Entity\Site $site Site Entity

@return void
Set the Site the redirect belongs to