# wordpress-seo/28.0/src/schema-aggregator/domain/schema-piece-repository-interface.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.0/code/src/schema-aggregator/domain/schema-piece-repository-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.0/raw/src/schema-aggregator/domain/schema-piece-repository-interface.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/28.0/code/src/schema-aggregator/domain/schema-piece-repository-interface.php#L10-L20`.

```php
<?php

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

/**
 * Schema piece repository interface.
 */
interface Schema_Piece_Repository_Interface {

	/**
	 * Gets schema pieces by indexable IDs.
	 *
	 * @param int    $page      The page number.
	 * @param int    $page_size The number of items per page.
	 * @param string $post_type The post type to filter by.
	 *
	 * @return Schema_Piece_Collection The schema pieces.
	 */
	public function get( int $page, int $page_size, string $post_type ): Schema_Piece_Collection;
}

```
