Completed
Push — master ( 627059...4c883f )
by Michael
9s
created

InputResult   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A fetch() 0 4 1
1
<?php
2
3
namespace PhpSchool\CliMenu\Input;
4
5
/**
6
 * @author Aydin Hassan <[email protected]>
7
 */
8
class InputResult
9
{
10
    /**
11
     * @var string
12
     */
13
    private $input;
14
15
    public function __construct(string $input)
16
    {
17
        $this->input = $input;
18
    }
19
20
    public function fetch() : string
21
    {
22
        return $this->input;
23
    }
24
}
25