Passed
Push — master ( a30145...bc128f )
by Webysther
36s
created

Console::setConsole()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Packagist Mirror.
7
 *
8
 * For the full license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Webs\Mirror;
13
14
use Symfony\Component\Console\Input\InputInterface;
15
use Symfony\Component\Console\Output\OutputInterface;
16
17
/**
18
 * Trait to gzip operations.
19
 *
20
 * @author Webysther Nunes <[email protected]>
21
 */
22
trait Console
23
{
24
    /**
25
     * @var InputInterface
26
     */
27
    protected $input;
28
29
    /**
30
     * @var OutputInterface
31
     */
32
    protected $output;
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function setConsole(InputInterface $input, OutputInterface $output):void
38
    {
39
        $this->input = $input;
40
        $this->output = $output;
41
    }
42
}
43