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

SymfonyOutputAdapter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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