PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.6.0
Defender Security – Malware Scanner, Login Security & Firewall v5.6.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / src / component / security-tweaks / servers / class-flywheel.php

class-flywheel.php in Defender Security – Malware Scanner, Login Security & Firewall 5.6.0, at src/component/security-tweaks/servers/class-flywheel.php

59 lines 972 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Responsible for managing server configurations related to security tweaks .
4 *
5 * @package WP_Defender\Component\Security_Tweaks\Servers
6 */
7
8 namespace WP_Defender\Component\Security_Tweaks\Servers;
9
10 /**
11 * Provides methods to apply and revert security rules on servers.
12 */
13 class Flywheel {
14
15 /**
16 * Service type.
17 *
18 * @var string|null
19 */
20 private $type = null;
21
22 /**
23 * Constructor for class.
24 *
25 * @param string $type The type of the security tweak.
26 */
27 public function __construct( $type ) {
28 $this->type = $type;
29 }
30
31 /**
32 * Check whether the issue has been resolved or not.
33 *
34 * @return bool
35 */
36 public function check() {
37 // Todo:add logic using $this->type for 'prevent-php-executed' & 'protect-information'.
38 return false;
39 }
40
41 /**
42 * Process the rule.
43 *
44 * @return bool
45 */
46 public function process() {
47 return true;
48 }
49
50 /**
51 * Revert the rule.
52 *
53 * @return bool
54 */
55 public function revert() {
56 return true;
57 }
58 }
59