PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 27.8
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v27.8
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 / infrastructure / schema_map / schema-map-repository-interface.php

schema-map-repository-interface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 27.8, at src/schema-aggregator/infrastructure/schema_map/schema-map-repository-interface.php

44 lines 1.5 KB
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\Infrastructure\Schema_Map;
4
5 use Yoast\WP\SEO\Schema_Aggregator\Domain\Indexable_Count;
6 use Yoast\WP\SEO\Schema_Aggregator\Domain\Indexable_Count_Collection;
7
8 /**
9 * Interface for the Schema map repository.
10 */
11 interface Schema_Map_Repository_Interface {
12
13 /**
14 * Gets the indexable count per post type.
15 *
16 * @param array<string> $post_types The post types to get the indexable count for.
17 *
18 * @return Indexable_Count_Collection The indexable count per post type.
19 */
20 public function get_indexable_count_per_post_type( array $post_types ): Indexable_Count_Collection;
21
22 /**
23 * Gets the indexable count for a single post type.
24 *
25 * @param string $post_type The post type to get the indexable count for.
26 *
27 * @return Indexable_Count The indexable count for the post type.
28 */
29 public function get_indexable_count_for_post_type( string $post_type ): Indexable_Count;
30
31 /**
32 * Get lastmod timestamp for a post type and page range
33 *
34 * Returns the latest post_modified_gmt timestamp for posts in the given range.
35 * Used for schemamap index to enable selective updates.
36 *
37 * @param string $post_type Post type slug.
38 * @param int $page Page number (1-indexed).
39 * @param int $per_page Items per page.
40 * @return string ISO 8601 timestamp (e.g., "2025-10-21T14:23:17Z").
41 */
42 public function get_lastmod_for_post_type( string $post_type, int $page, int $per_page ): string;
43 }
44