Passed
Push — master ( e3f2ef...14e7f5 )
by Alec
06:42
created

SymfonyOutputAdapter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 13
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A write() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Spinner\Core\Adapters;
4
5
use AlecRabbit\Spinner\Core\Contracts\SpinnerOutputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
8
class SymfonyOutputAdapter implements SpinnerOutputInterface
9
{
10
    /** @var OutputInterface */
11
    protected $output;
12
13
    public function __construct(OutputInterface $output)
14
    {
15
        $this->output = $output;
16
    }
17
18
    public function write($messages, $newline = false, $options = 0): void
19
    {
20
        $this->output->write($messages, $newline, $options);
21
    }
22
}
23