IOAware   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 17
ccs 0
cts 4
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setIO() 0 6 1
1
<?php
2
3
namespace Cerbero\ConsoleTasker\Traits;
4
5
use Illuminate\Console\Concerns\InteractsWithIO;
6
use Illuminate\Console\OutputStyle;
7
use Symfony\Component\Console\Input\InputInterface;
8
9
/**
10
 * The I/O aware trait.
11
 *
12
 */
13
trait IOAware
14
{
15
    use InteractsWithIO;
16
17
    /**
18
     * Set console input and output.
19
     *
20
     * @param InputInterface $input
21
     * @param OutputStyle $output
22
     * @return self
23
     */
24
    public function setIO(InputInterface $input, OutputStyle $output): self
25
    {
26
        $this->setInput($input);
27
        $this->setOutput($output);
28
29
        return $this;
30
    }
31
}
32