Total Complexity | 2 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
10 | final class DumpFileSubstitution implements SubstitutionStrategy |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $filename; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $contents; |
||
21 | |||
22 | /** |
||
23 | * @var Style |
||
24 | */ |
||
25 | private $style; |
||
26 | |||
27 | /** |
||
28 | * @var ProcessRunner |
||
29 | */ |
||
30 | private $processRunner; |
||
31 | |||
32 | /** |
||
33 | * @var Filesystem |
||
34 | */ |
||
35 | private $filesystem; |
||
36 | |||
37 | public function __construct( |
||
38 | string $filename, |
||
39 | string $contents, |
||
40 | Style $style, |
||
41 | ProcessRunner $processRunner, |
||
42 | Filesystem $filesystem |
||
43 | ) { |
||
44 | $this->filename = $filename; |
||
45 | $this->contents = $contents; |
||
46 | $this->style = $style; |
||
47 | $this->processRunner = $processRunner; |
||
48 | $this->filesystem = $filesystem; |
||
49 | } |
||
50 | |||
51 | public function substitute(Process $envSubstProcess) |
||
61 | ); |
||
62 | } |
||
64 | } |