public function register()
    {
        register_post_type($this->slug, [
            'labels'      => $this->labels,
            'public'      => $this->public,
            'has_archive' => $this->has_archive,
            'menu_icon'   => 'dashicons-' . $this->icon,
            'supports'    => $this->supports,
            'rewrite'     => [
                'slug' => $this->rewrite->slug,
                'with_front'  => $this->rewrite->with_front
            ]
        ]);
    }