name = $name; $this->label = $label; $this->taxonomy = $taxonomy; } /** * Gets name of the content type. * * @return string The name of the content type. */ public function get_name(): string { return $this->name; } /** * Gets label of the content type. * * @return string The label of the content type. */ public function get_label(): string { return $this->label; } /** * Gets the taxonomy that filters the content type. * * @return Taxonomy|null The taxonomy that filters the content type. */ public function get_taxonomy(): ?Taxonomy { return $this->taxonomy; } /** * Sets the taxonomy that filters the content type. * * @param Taxonomy|null $taxonomy The taxonomy that filters the content type. * * @return void */ public function set_taxonomy( ?Taxonomy $taxonomy ): void { $this->taxonomy = $taxonomy; } }