• File: aggregate-site-schema-command.php
  • Full Path: /home/docteuh/www/wp-content/plugins/wordpress-seo/src/schema-aggregator/application/aggregate-site-schema-command.php
  • Date Modified: 06/23/2026 4:19 PM
  • File size: 939 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Schema_Aggregator\Application;

use Yoast\WP\SEO\Schema_Aggregator\Domain\Page_Controls;

/**
 * Class that represents the command to aggregate site schema.
 */
class Aggregate_Site_Schema_Command {

	/**
	 * The page controls.
	 *
	 * @var Page_Controls
	 */
	private $page_controls;

	/**
	 * The constructor.
	 *
	 * @param int    $page      The current page.
	 * @param int    $per_page  The number of items per page.
	 * @param string $post_type The post type to aggregate schema for.
	 */
	public function __construct( int $page, int $per_page, string $post_type ) {
		$this->page_controls = new Page_Controls( $page, $per_page, $post_type );
	}

	/**
	 * Gets the page controls.
	 *
	 * @return Page_Controls
	 */
	public function get_page_controls(): Page_Controls {
		return $this->page_controls;
	}
}