Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders

Title_Builder{}Yoast 1.0

The builder of the title section.

Хуков нет.

Использование

$Title_Builder = new Title_Builder();
// use class methods

Методы

  1. public __construct(
  2. public build_title()

Код Title_Builder{} Yoast 28.3

class Title_Builder {

	/**
	 * The title adapter.
	 *
	 * @var Title_Adapter
	 */
	protected $title_adapter;

	/**
	 * The constructor.
	 *
	 * @param Title_Adapter $title_adapter The title adapter.
	 */
	public function __construct(
		Title_Adapter $title_adapter
	) {
		$this->title_adapter = $title_adapter;
	}

	/**
	 * Builds the title section.
	 *
	 * @return Title The title section.
	 */
	public function build_title(): Title {
		return $this->title_adapter->get_title();
	}
}