Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
polymastigina
/
wp-content
/
plugins
/
yoast-test-helper
/
src
:
notification.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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; } }