Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/wordpres.../src/analytic.../domain
File: missing-indexable-count.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Analytics\Domain;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Domain object that holds indexable count information.
[5] Fix | Delete
*/
[6] Fix | Delete
class Missing_Indexable_Count {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* The indexable type that is represented by this.
[10] Fix | Delete
*
[11] Fix | Delete
* @var string
[12] Fix | Delete
*/
[13] Fix | Delete
private $indexable_type;
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* The amount of missing indexables.
[17] Fix | Delete
*
[18] Fix | Delete
* @var int
[19] Fix | Delete
*/
[20] Fix | Delete
private $count;
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* The constructor.
[24] Fix | Delete
*
[25] Fix | Delete
* @param string $indexable_type The indexable type that is represented by this.
[26] Fix | Delete
* @param int $count The amount of missing indexables.
[27] Fix | Delete
*/
[28] Fix | Delete
public function __construct( $indexable_type, $count ) {
[29] Fix | Delete
$this->indexable_type = $indexable_type;
[30] Fix | Delete
$this->count = $count;
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
/**
[34] Fix | Delete
* Returns an array representation of the data.
[35] Fix | Delete
*
[36] Fix | Delete
* @return array Returns both values in an array format.
[37] Fix | Delete
*/
[38] Fix | Delete
public function to_array() {
[39] Fix | Delete
return [
[40] Fix | Delete
'indexable_type' => $this->get_indexable_type(),
[41] Fix | Delete
'count' => $this->get_count(),
[42] Fix | Delete
];
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* Gets the indexable type.
[47] Fix | Delete
*
[48] Fix | Delete
* @return string Returns the indexable type.
[49] Fix | Delete
*/
[50] Fix | Delete
public function get_indexable_type() {
[51] Fix | Delete
return $this->indexable_type;
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
/**
[55] Fix | Delete
* Gets the count.
[56] Fix | Delete
*
[57] Fix | Delete
* @return int Returns the amount of missing indexables.
[58] Fix | Delete
*/
[59] Fix | Delete
public function get_count() {
[60] Fix | Delete
return $this->count;
[61] Fix | Delete
}
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function