public function getSourceBySlug($sSlug)
    {
        foreach ($this->aSources as $oSource) {
            if ($sSlug === $oSource->slug) {
                return $oSource;
            }
        }

        return null;
    }
public function getSourceBySlug($sSlug)
    {
        foreach ($this->aSources as $oSource) {
            if ($sSlug === $oSource->slug) {
                return $oSource;
            }
        }

        return null;
    }
public function getSourceBySlug ( $ sSlug ) { foreach ( $ this -> aSources as $ oSource ) { if ( $ sSlug === $ oSource -> slug ) { return $ oSource ; } } return null ; }
Returns a specific source by its slug

@param $sSlug

@return \stdClass|null
Returns a specific source by its slug