Yoast\WP\SEO\Llms_Txt\Domain\Available_Posts\Data_Provider

Parameters{}Yoast 1.0

Object representation of the request parameters.

Хуков нет.

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

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

Методы

  1. public __construct( string $post_type, string $search_filter )
  2. public get_post_type()
  3. public get_search_filter()
  4. ERROR: no method name found on line ``
  5. ERROR: no method name found on line ``
  6. ERROR: no method name found on line ``
  7. ERROR: no method name found on line ``
  8. ERROR: no method name found on line ``
  9. ERROR: no method name found on line ``
  10. ERROR: no method name found on line ``
  11. ERROR: no method name found on line ``
  12. ERROR: no method name found on line ``

Код Parameters{} Yoast 27.6

class Parameters {

	/**
	 * The post type.
	 *
	 * @var string
	 */
	private $post_type;

	/**
	 * The search filter.
	 *
	 * @var string
	 */
	private $search_filter;

	/**
	 * Class constructor.
	 *
	 * @param string $post_type     The post type.
	 * @param string $search_filter The search filter.
	 */
	public function __construct( string $post_type, string $search_filter ) {
		$this->post_type     = $post_type;
		$this->search_filter = $search_filter;
	}

	/**
	 * Getter for the post type.
	 *
	 * @return string
	 */
	public function get_post_type(): string {
		return $this->post_type;
	}

	/**
	 * Getter for the search filter.
	 *
	 * @return string
	 */
	public function get_search_filter(): string {
		return $this->search_filter;
	}
}