Completed
Push — master ( 0801ff...40f238 )
by Greg
02:18
created

SerializeFormatter::write()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
namespace Consolidation\OutputFormatters\Formatters;
3
4
use Consolidation\OutputFormatters\FormatterInterface;
5
use Symfony\Component\Console\Output\OutputInterface;
6
7
class SerializeFormatter implements FormatterInterface
8
{
9
    /**
10
     * @inheritdoc
11
     */
12
    public function write(OutputInterface $output, $data, $options = [])
13
    {
14
        $output->writeln(serialize($data));
15
    }
16
}
17