name; } /** * Get namespace of the pattern. * * @return string */ public function get_namespace(): string { return $this->namespace; } /** * Return properties of the pattern. * * @return array */ public function get_properties(): array { return array( 'title' => $this->get_title(), 'content' => $this->get_content(), 'description' => $this->get_description(), 'categories' => $this->categories, 'inserter' => $this->inserter, 'blockTypes' => $this->block_types, 'templateTypes' => $this->template_types, 'postTypes' => $this->post_types, 'source' => $this->source, 'viewportWidth' => $this->viewport_width, ); } /** * Get content. * * @return string */ abstract protected function get_content(): string; /** * Get title. * * @return string */ abstract protected function get_title(): string; /** * Get description. * * @return string */ protected function get_description(): string { return ''; } }