\x20\40\x20\40 HEX
HEX
Server: Apache
System: Linux web1.jenscom.net 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User: sps (1059)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/sps/www/wp-content/plugins/nextgen-gallery/src/Admin/Notifications/Wrapper.php
<?php

namespace Imagely\NGG\Admin\Notifications;

/**
 * Notification Wrapper class.
 *
 * Wraps notification data for display in the admin interface.
 */
class Wrapper {

	/**
	 * Notification name.
	 *
	 * @var string
	 */
	public $_name;

	/**
	 * Notification data.
	 *
	 * @var array
	 */
	public $_data;

	/**
	 * Constructor.
	 *
	 * @param string $name Notification name.
	 * @param array  $data Notification data.
	 */
	public function __construct( $name, $data ) {
		$this->_name = $name;
		$this->_data = $data;
	}

	/**
	 * Checks if the notification is renderable.
	 *
	 * @return bool Always returns true.
	 */
	public function is_renderable() {
		return true;
	}

	/**
	 * Checks if the notification is dismissable.
	 *
	 * @return bool Always returns true.
	 */
	public function is_dismissable() {
		return true;
	}

	/**
	 * Renders the notification content.
	 *
	 * @return string The notification message.
	 */
	public function render() {
		return $this->_data['message'];
	}
}