PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 27.9
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v27.9
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 / schema-aggregator / application / aggregate-site-schema-map-command.php

aggregate-site-schema-map-command.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 27.9, at src/schema-aggregator/application/aggregate-site-schema-map-command.php

35 lines 780 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3 namespace Yoast\WP\SEO\Schema_Aggregator\Application;
4
5 /**
6 * Class that represents the command to aggregate site schema map.
7 */
8 class Aggregate_Site_Schema_Map_Command {
9
10 /**
11 * The post types to include in the schema map.
12 *
13 * @var array<string>
14 */
15 private $post_types;
16
17 /**
18 * The constructor.
19 *
20 * @param array<string> $post_types The post types to include in the schema map.
21 */
22 public function __construct( array $post_types ) {
23 $this->post_types = $post_types;
24 }
25
26 /**
27 * Gets the post types to include in the schema map.
28 *
29 * @return array<string> The post types.
30 */
31 public function get_post_types(): array {
32 return $this->post_types;
33 }
34 }
35