File "indexable-extension.php"
Full Path: /home/itfekxul/theolympicssports.com/wp-content/plugins/wordpress-seo/src/models/indexable-extension.php
File size: 565 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Yoast\WP\SEO\Models;
use Yoast\WP\Lib\Model;
/**
* Abstract class for indexable extensions.
*/
abstract class Indexable_Extension extends Model {
/**
* Holds the Indexable instance.
*
* @var Indexable
*/
protected $indexable = null;
/**
* Returns the indexable this extension belongs to.
*
* @return Indexable The indexable.
*/
public function indexable() {
if ( $this->indexable === null ) {
$this->indexable = $this->belongs_to( 'Indexable', 'indexable_id', 'id' )->find_one();
}
return $this->indexable;
}
}