public static function setViewer($viewerClass)
    {
        if (!is_subclass_of($viewerClass, \Phramework\Viewers\IViewer::class, true)) {
            throw new \Exception(
                'Class is not implementing Phramework\Viewers\IViewer'
            );
        }
        self::$viewer = $viewerClass;
    }