PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.3.1
Defender Security – Malware Scanner, Login Security & Firewall v5.3.1
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 / class-abstract-security-tweaks.php

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

45 lines 742 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Abstract class for defining security tweaks.
4 *
5 * @package WP_Defender\Component\Security_Tweaks
6 */
7
8 namespace WP_Defender\Component\Security_Tweaks;
9
10 use Calotes\Base\Component;
11
12 /**
13 * Abstract class for Security Tweaks.
14 */
15 abstract class Abstract_Security_Tweaks extends Component {
16
17 /**
18 * Unique identifier for the tweak.
19 *
20 * @var string $slug
21 */
22 public string $slug;
23
24 /**
25 * Retrieve the tweak's label.
26 *
27 * @return string
28 */
29 abstract public function get_label(): string;
30
31 /**
32 * Get the error reason.
33 *
34 * @return string
35 */
36 abstract public function get_error_reason(): string;
37
38 /**
39 * Return the tweak's summary data.
40 *
41 * @return array
42 */
43 abstract public function to_array(): array;
44 }
45