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 / domain / available-posts / data-provider / parameters.php

parameters.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI trunk, at src/llms-txt/domain/available-posts/data-provider/parameters.php

55 lines 1.1 KB
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 -- Needed in the folder structure.
4 // phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded -- Needed in the folder structure.
5 namespace Yoast\WP\SEO\Llms_Txt\Domain\Available_Posts\Data_Provider;
6
7 /**
8 * Object representation of the request parameters.
9 */
10 class Parameters {
11
12 /**
13 * The post type.
14 *
15 * @var string
16 */
17 private $post_type;
18
19 /**
20 * The search filter.
21 *
22 * @var string
23 */
24 private $search_filter;
25
26 /**
27 * Class constructor.
28 *
29 * @param string $post_type The post type.
30 * @param string $search_filter The search filter.
31 */
32 public function __construct( string $post_type, string $search_filter ) {
33 $this->post_type = $post_type;
34 $this->search_filter = $search_filter;
35 }
36
37 /**
38 * Getter for the post type.
39 *
40 * @return string
41 */
42 public function get_post_type(): string {
43 return $this->post_type;
44 }
45
46 /**
47 * Getter for the search filter.
48 *
49 * @return string
50 */
51 public function get_search_filter(): string {
52 return $this->search_filter;
53 }
54 }
55