| Server IP : 62.171.151.215 / Your IP : 216.73.217.53 Web Server : nginx/1.18.0 System : Linux vmi3128365 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64 User : alex ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/plugin-wordpress-seo/wordpress-seo/src/schema-aggregator/domain/ |
Upload File : |
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Schema_Aggregator\Domain;
/**
* Class to contain the count of indexables for a specific post type.
*/
class Indexable_Count {
/**
* The count of indexables.
*
* @var int
*/
private $count;
/**
* The post type.
*
* @var string
*/
private $post_type;
/**
* Constructor for Indexable_Count.
*
* @param string $post_type The post type.
* @param int $count The count of indexables.
*/
public function __construct( string $post_type, int $count ) {
$this->post_type = $post_type;
$this->count = $count;
}
/**
* Gets the count of indexables.
*
* @return int The count of indexables.
*/
public function get_count(): int {
return $this->count;
}
/**
* Gets the post type.
*
* @return string The post type.
*/
public function get_post_type(): string {
return $this->post_type;
}
}