| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/yoast-test-helper/src/ |
Upload File : |
<?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;
}
}