plugin_uri = $plugin_uri; $this->slug = $slug; $this->name = "{$plugin_uri}//{$slug}"; // The template name is composed from the namespace and the slug. $this->title = $title; $this->description = $description; $this->content = $content; $this->post_types = $post_types; } /** * Get the plugin uri. * * @return string */ public function get_pluginuri(): string { return $this->plugin_uri; } /** * Get the template slug. * * @return string */ public function get_slug(): string { return $this->slug; } /** * Get the template name composed from the plugin_uri and the slug. * * @return string */ public function get_name(): string { return $this->name; } /** * Get the template title. * * @return string */ public function get_title(): string { return $this->title; } /** * Get the template description. * * @return string */ public function get_description(): string { return $this->description; } /** * Get the template content. * * @return string */ public function get_content(): string { return $this->content; } /** * Get the list of supported post types. * * @return string[] */ public function get_post_types(): array { return $this->post_types; } }