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
|
<?php
namespace iThemesSecurity\Ban_Hosts;
use iThemesSecurity\Exception\WP_Error;
interface Persistable extends Repository {
/** * Persists a ban to the repository. * * @param Repository_Ban $ban * * @return Repository_Ban * @throws WP_Error */ public function persist( Repository_Ban $ban );
/** * Fills a ban from request data. * * @param array $data * @param Repository_Ban|null $ban * * @return Repository_Ban */ public function fill( array $data, Repository_Ban $ban = null ); }
|