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
51
52
53
54
55
56
57
58
59
60
|
<?php
namespace iThemesSecurity\Ban_Hosts;
interface Repository extends Source {
/** * Gets the slug uniquely identifying this repository. * * @return string */ public function get_slug();
/** * Gets a list of all bans in the repository. * * Results must be ordered in reverse chronological order. * * @param Filters $filters * * @return Repository_Ban[] */ public function get_bans( Filters $filters );
/** * Counts the number of bans that match the given filters. * * @param Filters $filters * * @return int */ public function count_bans( Filters $filters );
/** * Gets the list of supported query filters. * * A list of {@see Filters} constants declaring the available options. * * @return string[] */ public function get_supported_filters();
/** * Retrieves a Ban object identified by the given uuid. * * @param int $id The ban's id. * * @return Repository_Ban|null */ public function get( $id );
/** * Finds a ban for the given host. * * @param string $host The host to find a ban for. * * @return Repository_Ban|null */ public function find_ban_for_host( $host ); }
|