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