src/objects/SiteMutatorTrait.php
public function getSiteId()
    {
        if (null === $this->siteId && null !== $this->site) {
            $this->siteId = $this->site->id;
        }

        return $this->siteId;
    }
public function getSiteId()
    {
        if (null === $this->siteId && null !== $this->site) {
            $this->siteId = $this->site->id;
        }

        return $this->siteId;
    }
public function getSiteId ( ) { if ( null === $ this -> siteId && null !== $ this -> site ) { $ this -> siteId = $ this -> site -> id ; } return $ this -> siteId ; }
Get associated siteId

@return int|null
Get associated siteId