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

Dumper   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A dumpPatch() 0 4 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
}