Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
48 | 2 | public function __construct(string $needle, string $replacement = null, bool $useFaker = false) |
|
49 | { |
||
50 | 2 | $this->needle = $needle; |
|
51 | 2 | $this->replacement = $replacement; |
|
52 | 2 | $this->useFaker = $useFaker; |
|
53 | |||
54 | 2 | if ($useFaker) { |
|
55 | 1 | $this->faker = new Generator(); |
|
56 | 1 | $this->faker->addProvider(new Internet($this->faker)); |
|
57 | } |
||
58 | 2 | } |
|
59 | |||
83 |