| 1 |
<?php |
| 2 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. |
| 3 |
namespace Yoast\WP\SEO\Schema_Aggregator\Domain\Enhancement; |
| 4 |
|
| 5 |
use Yoast\WP\SEO\Models\Indexable; |
| 6 |
use Yoast\WP\SEO\Schema_Aggregator\Domain\Schema_Piece; |
| 7 |
|
| 8 |
interface Schema_Enhancement_Interface { |
| 9 |
|
| 10 |
/** |
| 11 |
* Enhances the given schema piece. |
| 12 |
* |
| 13 |
* @param Schema_Piece $schema_piece The schema piece to enhance. |
| 14 |
* @param Indexable $indexable The indexable object that is the source of the schema piece. |
| 15 |
* |
| 16 |
* @return Schema_Piece The enhanced schema piece. |
| 17 |
*/ |
| 18 |
public function enhance( Schema_Piece $schema_piece, Indexable $indexable ): Schema_Piece; |
| 19 |
} |
| 20 |
|