PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / llms-txt / application / markdown-builders / title-builder.php

title-builder.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI trunk, at src/llms-txt/application/markdown-builders/title-builder.php

41 lines 798 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
4 namespace Yoast\WP\SEO\Llms_Txt\Application\Markdown_Builders;
5
6 use Yoast\WP\SEO\Llms_Txt\Domain\Markdown\Sections\Title;
7 use Yoast\WP\SEO\Llms_Txt\Infrastructure\Markdown_Services\Title_Adapter;
8
9 /**
10 * The builder of the title section.
11 */
12 class Title_Builder {
13
14 /**
15 * The title adapter.
16 *
17 * @var Title_Adapter
18 */
19 protected $title_adapter;
20
21 /**
22 * The constructor.
23 *
24 * @param Title_Adapter $title_adapter The title adapter.
25 */
26 public function __construct(
27 Title_Adapter $title_adapter
28 ) {
29 $this->title_adapter = $title_adapter;
30 }
31
32 /**
33 * Builds the title section.
34 *
35 * @return Title The title section.
36 */
37 public function build_title(): Title {
38 return $this->title_adapter->get_title();
39 }
40 }
41