HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wpseo-local/src/builders/Locations_Repository_Builder.php
<?php

namespace Yoast\WP\Local\Builders;

use Yoast\WP\Local\PostType\PostType;
use Yoast\WP\Local\Repositories\Locations_Repository;
use Yoast\WP\Local\Repositories\Options_Repository;

class Locations_Repository_Builder {

	/**
	 * @var Locations_Repository
	 */
	private $locations_repository;

	public function __construct() {
		$post_type = new PostType();
		$options   = new Options_Repository();

		$post_type->initialize();
		$options->initialize();

		$this->locations_repository = new Locations_Repository( $post_type, $options );
		$this->locations_repository->initialize();
	}

	public function get_locations_repository() {
		return $this->locations_repository;
	}
}