HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/TriadGov/wp-content/plugins/wp-mail-smtp-pro/src/Pro/Alerts/Alert.php
<?php

namespace WPMailSMTP\Pro\Alerts;

/**
 * Class Alert.
 *
 * @since 3.5.0
 */
class Alert {

	/**
	 * Alert type.
	 *
	 * @since 3.5.0
	 *
	 * @var string
	 */
	private $type;

	/**
	 * Alert data.
	 *
	 * @since 3.5.0
	 *
	 * @var array
	 */
	private $data;

	/**
	 * Constructor.
	 *
	 * @since 3.5.0
	 *
	 * @param string $type Alert type.
	 * @param array  $data Alert data.
	 */
	public function __construct( $type, $data ) {

		$this->type = $type;
		$this->data = $data;
	}

	/**
	 * Get alert type.
	 *
	 * @since 3.5.0
	 *
	 * @return string
	 */
	public function get_type() {

		return $this->type;
	}

	/**
	 * Get alert data.
	 *
	 * @since 3.5.0
	 *
	 * @return array
	 */
	public function get_data() {

		return $this->data;
	}
}