1 | <?php |
||
26 | class FakeIpPlugin implements Plugin |
||
27 | { |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $needle; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $replacement; |
||
37 | |||
38 | /** |
||
39 | * @var bool |
||
40 | */ |
||
41 | private $useFaker; |
||
42 | |||
43 | /** |
||
44 | * @var Generator|null |
||
45 | */ |
||
46 | private $faker; |
||
47 | |||
48 | 2 | public function __construct(string $needle, string $replacement = null, bool $useFaker = false) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 2 | public function handleQuery(Query $query, callable $next, callable $first) |
|
82 | } |
||
83 |