HEX
Server: LiteSpeed
System: Linux cpir1.prohostdns.com 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: pelakir (2976)
PHP: 8.2.31
Disabled: exec, shell_exec, system, passthru, proc_open, proc_close, proc_terminate, proc_get_status, popen, pclose, pcntl_exec
Upload Files
File: /home/pelakir/www/wp-content/plugins/wordpress-seo/src/schema-aggregator/domain/indexable-count.php
<?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;
	}
}