Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
editors
/
framework
/
seo
/
posts
:
abstract-post-seo-data-provider.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded namespace Yoast\WP\SEO\Editors\Framework\Seo\Posts; use WP_Post; use Yoast\WP\SEO\Editors\Domain\Seo\Seo_Plugin_Data_Interface; /** * Abstract class for all post data providers. */ abstract class Abstract_Post_Seo_Data_Provider { /** * Holds the WordPress Post. * * @var WP_Post */ protected $post; /** * The post. * * @param WP_Post $post The post. * * @return void */ public function set_post( WP_Post $post ): void { $this->post = $post; } /** * Method to return the compiled SEO data. * * @return Seo_Plugin_Data_Interface The specific seo data. */ abstract public function get_data(): Seo_Plugin_Data_Interface; }