# defender-security/6.3.0/src/component/security-tweaks/servers/class-php-wasm.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 6.3.0. 61 lines.

- Page: https://pluginprobe.com/plugins/defender-security/6.3.0/code/src/component/security-tweaks/servers/class-php-wasm.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.3.0/raw/src/component/security-tweaks/servers/class-php-wasm.php
- Modified: 2024-07-24T10:45:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/6.3.0/code/src/component/security-tweaks/servers/class-php-wasm.php#L10-L20`.

```php
<?php
/**
 * Responsible for managing server configurations related to security tweaks .
 *
 * @package WP_Defender\Component\Security_Tweaks\Servers
 */

namespace WP_Defender\Component\Security_Tweaks\Servers;

/**
 * Class for case when we need to "compile PHP to WebAssembly".
 *
 * @since 4.5.1
 */
class PHP_Wasm {

	/**
	 * Service type.
	 *
	 * @var string
	 */
	private $type = null;

	/**
	 * Constructor for class.
	 *
	 * @param  string $type  The type of the security tweak.
	 */
	public function __construct( $type ) {
		$this->type = $type;
	}

	/**
	 * Check whether the issue has been resolved or not.
	 *
	 * @return bool
	 */
	public function check() {
		// Todo:add logic using $this->type for 'prevent-php-executed' & 'protect-information'.
		return false;
	}

	/**
	 * Process the rule.
	 *
	 * @return bool
	 */
	public function process() {
		return true;
	}

	/**
	 * Revert the rule.
	 *
	 * @return bool
	 */
	public function revert() {
		return true;
	}
}

```
