public function get($id): Domain
    {
        if (!$model = Domain::findOne($id)) {
            throw new NotFoundException($this->i18n->t('setrun/sys/domain', 'Domain is not found'));
        }
        return $model;
    }
public function get($id): Domain
    {
        if (!$model = Domain::findOne($id)) {
            throw new NotFoundException($this->i18n->t('setrun/sys/domain', 'Domain is not found'));
        }
        return $model;
    }
public function get ( $ id ) : Domain { if ( ! $ model = Domain :: findOne ( $ id ) ) { throw new NotFoundException ( $ this -> i18n -> t ( 'setrun/sys/domain' , 'Domain is not found' ) ) ; } return $ model ; }
Find a domain item.
@param $id
@return Domain
Find a domain item .