PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.7.0
Defender Security – Malware Scanner, Login Security & Firewall v5.7.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 / trusted-proxy-preset / trusted-proxy-preset-strategy-interface.php

trusted-proxy-preset-strategy-interface.php in Defender Security – Malware Scanner, Login Security & Firewall 5.7.0, at src/component/trusted-proxy-preset/trusted-proxy-preset-strategy-interface.php

32 lines 767 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The interface for trusted proxy preset class.
4 *
5 * @package WP_Defender\Component\Trusted_Proxy_Preset
6 */
7
8 namespace WP_Defender\Component\Trusted_Proxy_Preset;
9
10 interface Trusted_Proxy_Preset_Strategy_Interface {
11
12 /**
13 * Retrieve a list of trusted proxy IP addresses.
14 *
15 * @return array An array of IP addresses.
16 */
17 public function get_ips(): array;
18
19 /**
20 * Update the list of trusted proxy IP addresses.
21 * This method should handle the logic to update the current list of IPs based on the implementation requirements.
22 */
23 public function update_ips();
24
25 /**
26 * Delete the list of trusted proxy IP addresses.
27 *
28 * @return bool Returns true if the deletion was successful, false otherwise.
29 */
30 public function delete_ips(): bool;
31 }
32