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/advanced-ads/includes/ads/class-ads.php
<?php
/**
 * This class is responsible to hold all the Ads functionality.
 *
 * @package AdvancedAds
 * @author  Advanced Ads <info@wpadvancedads.com>
 * @since   1.48.0
 */

namespace AdvancedAds\Ads;

use AdvancedAds\Framework\Interfaces\Initializer_Interface;

defined( 'ABSPATH' ) || exit;

/**
 * Ads Ads.
 */
class Ads implements Initializer_Interface {

	/**
	 * Hold factory instance
	 *
	 * @var Ad_Factory
	 */
	public $factory = null;

	/**
	 * Hold repository instance
	 *
	 * @var Ad_Repository
	 */
	public $repository = null;

	/**
	 * Hold types manager
	 *
	 * @var Ad_Types
	 */
	public $types = null;

	/**
	 * Runs this initializer.
	 *
	 * @return void
	 */
	public function initialize(): void {
		$this->factory    = new Ad_Factory();
		$this->types      = new Ad_Types();
		$this->repository = new Ad_Repository();

		$this->types->hooks();
	}
}