Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class PatternReplacer implements PatternReplacerInterface |
||
11 | { |
||
12 | use ReplaceByPatternTrait; |
||
13 | |||
14 | /** @var string */ |
||
15 | private $separator; |
||
16 | |||
17 | /** |
||
18 | * Constructor. |
||
19 | * |
||
20 | * @param string $separator |
||
21 | */ |
||
22 | 10 | public function __construct( |
|
26 | 10 | } |
|
27 | |||
28 | /** |
||
29 | * Get a replacement path for a matched path. |
||
30 | * |
||
31 | * @param string $match |
||
32 | * @param string $pattern |
||
33 | * @param string $replacement |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | 10 | public function replace( |
|
50 |