protected function getThemeToUse(ResourceSettings $settings) : Theme
    {
        if ($settings->theme instanceof Theme) {
            return $settings->theme;
        }

        return $settings->themeName !== null ? $this->getTheme($settings->themeName) : $this->getDefaultTheme();
    }
protected function getThemeToUse(ResourceSettings $settings) : Theme
    {
        if ($settings->theme instanceof Theme) {
            return $settings->theme;
        }

        return $settings->themeName !== null ? $this->getTheme($settings->themeName) : $this->getDefaultTheme();
    }
protected function getThemeToUse ( ResourceSettings $ settings ) : Theme { if ( $ settings -> theme instanceof Theme ) { return $ settings -> theme ; } return $ settings -> themeName !== null ? $ this -> getTheme ( $ settings -> themeName ) : $ this -> getDefaultTheme ( ) ; }
Get theme to use

@param \Laranix\Themer\ResourceSettings $settings
@return \Laranix\Themer\Theme
Get theme to use