HEX
Server: Apache
System: Linux ebs-147252 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64
User: jumuhardware (65594)
PHP: 8.2.20
Disabled: link,symlink,passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server,pcntl_fork,pcntl_rfork
Upload Files
File: /home/wwwroot/jumuhardware/wwwroot/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;
	}
}