ConsoleCommand   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 getIo() 0 4 1
A setIo() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Core\Console\Command;
11
12
use Webmozart\Console\Api\IO\IO;
13
14
/**
15
 * ConsoleCommand class.
16
 *
17
 * @author Ivannis Suárez Jerez <[email protected]>
18
 */
19
class ConsoleCommand implements ConsoleCommandInterface
20
{
21
    /**
22
     * @var IO
23
     */
24
    protected $io;
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function getIo()
30
    {
31
        return $this->io;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function setIo(IO $io)
38
    {
39
        $this->io = $io;
40
    }
41
}
42