public function getDomain()
    {
        $model = explode("\\", $this->getModelNamespace());
        return strlen($model[0]) || 1 === count($model) ? $model[0] : $model[1];
    }
public function getDomain()
    {
        $model = explode("\\", $this->getModelNamespace());
        return strlen($model[0]) || 1 === count($model) ? $model[0] : $model[1];
    }
public function getDomain ( ) { $ model = explode ( "\\" , $ this -> getModelNamespace ( ) ) ; return strlen ( $ model [ 0 ] ) || 1 === count ( $ model ) ? $ model [ 0 ] : $ model [ 1 ] ; }
Method that extract the Domain name
@return mixed
Method that extract the Domain name