HasInputTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setInput() 0 4 1
A getInput() 0 4 1
1
<?php
2
/**
3
 * This file is part of the phpspec-console package.
4
 * (c) 2017 Timo Michna <timomichna/yahoo.de>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Tidal\PhpSpec\ConsoleExtension\Behavior\Command;
11
12
use Symfony\Component\Console\Input\InputInterface;
13
14
/**
15
 * Trait Tidal\PhpSpec\ConsoleExtension\Behavior\Command\HasInputTrait */
16
trait HasInputTrait
17
{
18
    /**
19
     * @var InputInterface
20
     */
21
    protected $input;
22
23
    /**
24
     * @param InputInterface $input
25
     */
26
    public function setInput(InputInterface $input)
27
    {
28
        $this->input = $input;
29
    }
30
31
    /**
32
     * @return InputInterface
33
     */
34
    public function getInput(): InputInterface
35
    {
36
        return $this->input;
37
    }
38
}
39
40