Completed
Pull Request — 2.1 (#10)
by David
02:22
created

Dumper::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
4
namespace Mouf\Utils\Patcher\Dumper;
5
6
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
class Dumper implements DumperInterface
10
{
11
    /**
12
     * @var OutputInterface
13
     */
14
    private $output;
15
16
    public function __construct(OutputInterface $output)
17
    {
18
        $this->output = $output;
19
    }
20
21
    public function dumpPatch(string $code): void
22
    {
23
        $this->output->writeln($code);
24
    }
25
}