public function findSiteByType($type) {
        $type = (int) $type;
        return \Functional\first($this->_getSiteList(), function (CM_Site_Abstract $site) use ($type) {
            return $site->getType() === $type;
        });
    }
public function findSiteByType($type) {
        $type = (int) $type;
        return \Functional\first($this->_getSiteList(), function (CM_Site_Abstract $site) use ($type) {
            return $site->getType() === $type;
        });
    }
public function findSiteByType ( $ type ) { $ type = ( int ) $ type ; return \ Functional \ first ( $ this -> _getSiteList ( ) , function ( CM_Site_Abstract $ site ) use ( $ type ) { return $ site -> getType ( ) === $ type ; } ) ; }
These 2 method were temporary added till we resolve ambiguity related to splitting siteId and type
especially for models where type is currently stored.

@param int $type
@return CM_Site_Abstract|null
@deprecated use site `id` when it's possible
These 2 method were temporary added till we resolve ambiguity related to splitting siteId and type especially for models where type is currently stored .