• File: Event_List_Registry.php
  • Full Path: /home/docteuh/www/cache-store-log/Modules/Analytics/Advanced_Tracking/Event_List_Registry.php
  • Date Modified: 12/06/2023 7:16 PM
  • File size: 1.05 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * Class Google\Site_Kit\Modules\Analytics\Advanced_Tracking\Event_List_Registry
 *
 * @package   Google\Site_Kit\Modules\Analytics
 * @copyright 2021 Google LLC
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://sitekit.withgoogle.com
 */

namespace Google\Site_Kit\Modules\Analytics\Advanced_Tracking;

/**
 * Class for registering third party event lists.
 *
 * @since 1.18.0.
 * @access private
 * @ignore
 */
class Event_List_Registry {

	/**
	 * The list of registered event lists.
	 *
	 * @since 1.18.0.
	 * @var Event_List[]
	 */
	private $event_lists = array();

	/**
	 * Registers an event list.
	 *
	 * @since 1.18.0.
	 *
	 * @param Event_List $event_list The event list to be registered.
	 */
	public function register_list( Event_List $event_list ) {
		$this->event_lists[] = $event_list;
	}

	/**
	 * Gets the list of registered event lists.
	 *
	 * @since 1.18.0.
	 *
	 * @return Event_List[] The list of registered event lists.
	 */
	public function get_lists() {
		return $this->event_lists;
	}
}