# wordpress-seo/27.5/src/llms-txt/application/markdown-builders/title-builder.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 27.5. 41 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.5/code/src/llms-txt/application/markdown-builders/title-builder.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.5/raw/src/llms-txt/application/markdown-builders/title-builder.php
- Modified: 2026-01-20T12:23:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/27.5/code/src/llms-txt/application/markdown-builders/title-builder.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders;

use Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Sections\Title;
use Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Title_Adapter;

/**
 * The builder of the title section.
 */
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();
	}
}

```
