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

@param Site $site Site object to add

@return void
Set site the page belongs to