original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Register this PostType with WordPress
  
  @return void
docstring_tokens: Register this PostType with WordPress