1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
<?php
namespace iThemesSecurity\Ban_Hosts;
use iThemesSecurity\Actor\Actor;
interface Ban {
/** * Does this ban entry match the given IP address. * * @param string $ip The IP address. * * @return bool */ public function matches( $ip );
/** * Gets the time this entry was created. * * @return \DateTimeImmutable|null */ public function get_created_at();
/** * Gets the actor who added this ban entry. * * @return Actor|null */ public function get_created_by();
/** * Gets the comment describing the ban entry. * * @return string */ public function get_comment();
/** * Human facing label of what is banned. * * This should be as short as possible. For example: * * - 192.168.1.1 * - 192.168.1/8 * * @return string */ public function __toString(); }
|