<?php
/**
 * Provider discovery module service bundle.
 *
 * @package ScheduledChanges
 */

namespace ScheduledChanges\Provider;

use ScheduledChanges\Field\FieldRegistry;

/**
 * Holds the provider/field discovery services owned by the foundation module.
 */
final class ProviderDiscoveryServices {
	private ProviderRegistry $providers;
	private FieldRegistry $fields;
	private ProviderManager $manager;

	public function __construct( ProviderRegistry $providers, FieldRegistry $fields, ProviderManager $manager ) {
		$this->providers = $providers;
		$this->fields    = $fields;
		$this->manager   = $manager;
	}

	public function providers(): ProviderRegistry {
		return $this->providers;
	}

	public function fields(): FieldRegistry {
		return $this->fields;
	}

	public function manager(): ProviderManager {
		return $this->manager;
	}
}
