HEX
Server: Apache
System: Linux vps.teamads.com 4.18.0-553.126.1.el8_10.x86_64 #1 SMP Thu May 28 06:44:09 EDT 2026 x86_64
User: teamadsc (1024)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/teamadsc/public_html/wp-content/plugins/wp-defender/framework/component/class-behavior.php
<?php
/**
 * Base behavior class.
 *
 * @package Calotes\Component
 */

namespace Calotes\Component;

use Calotes\Base\Component;

/**
 * Base behavior class for all behaviors.
 */
class Behavior extends Component {

	/**
	 * The component this behavior tied to.
	 *
	 * @var object
	 */
	public $owner;

	/**
	 * Get a failed ignore result.
	 *
	 * @param string $issue_name Name of scan issue.
	 *
	 * @return string
	 */
	public function get_failed_ignore_result( string $issue_name ): string {
		return sprintf(
			/* translators: %s: Scan issue name. */
			esc_html__( '%s is already marked as Ignored. It can’t be added to the Ignored list again.', 'wpdef' ),
			$issue_name
		);
	}

	/**
	 * Get a failed restore result.
	 *
	 * @param string $issue_name Name of scan issue.
	 *
	 * @return string
	 */
	public function get_failed_restore_result( string $issue_name ): string {
		return sprintf(
			/* translators: %s: Scan issue name. */
			esc_html__( '%s is already marked as Issue. It can’t be added to the Issue list again.', 'wpdef' ),
			$issue_name
		);
	}

	/**
	 * Get issue name.
	 *
	 * @param array $raw_data Array of raw data.
	 *
	 * @return string
	 */
	public function get_issue_name( $raw_data ): string {
		return $raw_data['name'];
	}
}