C:\xampp\htdocs\landing\wp-content\plugins\wordpress-seo\src\models\indexable-extension.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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;
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586