public static function register()
    {
        $postType = static::getPostType();
        $config = static::getPostTypeConfig();

        if (empty($postType) || $postType === 'post') {
            throw new PostTypeRegistrationException('Post type not set');
        }

        if (empty($config)) {
            throw new PostTypeRegistrationException('Config not set');
        }

        register_post_type($postType, $config);
    }