| 1 |
<?php |
| 2 |
|
| 3 |
namespace WP_Defender\Component\Security_Tweaks\Servers; |
| 4 |
|
| 5 |
class Flywheel { |
| 6 |
/** |
| 7 |
* Service type. |
| 8 |
* |
| 9 |
* @var string |
| 10 |
*/ |
| 11 |
private $type = null; |
| 12 |
|
| 13 |
public function __construct( $type ) { |
| 14 |
$this->type = $type; |
| 15 |
} |
| 16 |
|
| 17 |
/** |
| 18 |
* Check whether the issue has been resolved or not. |
| 19 |
* |
| 20 |
* @return bool |
| 21 |
*/ |
| 22 |
public function check() { |
| 23 |
//Todo:add logic using $this->type for 'prevent-php-executed' & 'protect-information'. |
| 24 |
return false; |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* Process the rule. |
| 29 |
* |
| 30 |
* @return bool |
| 31 |
*/ |
| 32 |
public function process() { |
| 33 |
return true; |
| 34 |
} |
| 35 |
|
| 36 |
/** |
| 37 |
* Revert the rule. |
| 38 |
* |
| 39 |
* @return bool |
| 40 |
*/ |
| 41 |
public function revert() { |
| 42 |
return true; |
| 43 |
} |
| 44 |
} |
| 45 |
|