🇳🇦🇲🇪♯➤ webm004.cluster127.gra.hosting.ovh.net 🇻♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾♯➤ 2026
𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.191
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/cli/auth/cgi_bin/serverhttpson/01/schema_map//schema-map-repository-factory.php
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Schema_Aggregator\Infrastructure\Schema_Map;
/**
* Factory for getting the amount of posts per post type.
*/
class Schema_Map_Repository_Factory {
/**
* The native indexable repository.
*
* @var Schema_Map_Indexable_Repository
*/
private $native_repository;
/**
* The WordPress indexable repository.
*
* @var Schema_Map_WordPress_Repository
*/
private $wordpress_repository;
/**
* Constructor.
*
* @param Schema_Map_Indexable_Repository $native_repository The native indexable repository.
* @param Schema_Map_WordPress_Repository $wordpress_repository The WordPress indexable repository.
*/
public function __construct(
Schema_Map_Indexable_Repository $native_repository,
Schema_Map_WordPress_Repository $wordpress_repository
) {
$this->native_repository = $native_repository;
$this->wordpress_repository = $wordpress_repository;
}
/**
* Gets the appropriate indexable repository based on availability.
*
* @param bool $indexables_available Whether native indexables are available.
*
* @return Schema_Map_Repository_Interface The selected indexable repository.
*/
public function get_repository( bool $indexables_available ): Schema_Map_Repository_Interface {
if ( $indexables_available ) {
return $this->native_repository;
}
return $this->wordpress_repository;
}
}