# wordpress-seo/27.6/src/schema-aggregator/application/aggregate-site-schema-map-command.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.6/code/src/schema-aggregator/application/aggregate-site-schema-map-command.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.6/raw/src/schema-aggregator/application/aggregate-site-schema-map-command.php
- Modified: 2026-02-17T12:17:50+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.6/code/src/schema-aggregator/application/aggregate-site-schema-map-command.php#L10-L20`.

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

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

	/**
	 * The post types to include in the schema map.
	 *
	 * @var array<string>
	 */
	private $post_types;

	/**
	 * The constructor.
	 *
	 * @param array<string> $post_types The post types to include in the schema map.
	 */
	public function __construct( array $post_types ) {
		$this->post_types = $post_types;
	}

	/**
	 * Gets the post types to include in the schema map.
	 *
	 * @return array<string> The post types.
	 */
	public function get_post_types(): array {
		return $this->post_types;
	}
}

```
