HEX
Server: LiteSpeed
System: Linux s3.sitechai.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: workzeni (2217)
PHP: 8.1.32
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/workzeni/ecom.workzenix.com/wp-content/plugins/yoast-test-helper/src/notification.php
<?php

namespace Yoast\WP\Test_Helper;

/**
 * Test Helper Notification.
 */
class Notification {

	/**
	 * The notification copy.
	 *
	 * @var string
	 */
	protected $message = '';

	/**
	 * The type of the notification.
	 *
	 * @var string
	 */
	protected $type = '';

	/**
	 * Constructs a notification.
	 *
	 * @param string $message Notification message.
	 * @param string $type    Notification type.
	 */
	public function __construct( $message, $type = 'info' ) {
		$this->message = $message;
		$this->type    = $type;
	}

	/**
	 * Returns the notification type.
	 *
	 * @return string The notification type.
	 */
	public function get_type() {
		return $this->type;
	}

	/**
	 * Returns the notification copy.
	 *
	 * @return string The notification copy.
	 */
	public function get_message() {
		return $this->message;
	}
}