Choice::getCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace BarenoteCli\Command\Menu;
3
4
class Choice
5
{
6
    /**
7
     * @var string|null
8
     */
9
    private $command;
10
    /**
11
     * @var string
12
     */
13
    private $option;
14
    
15
    public function __construct($command, string $option)
16
    {
17
        $this->command = $command;
18
        $this->option = $option;
19
    }
20
    
21
    /**
22
     * @return string|null
23
     */
24
    public function getCommand()
25
    {
26
        return $this->command;
27
    }
28
    
29
    /**
30
     * @return string
31
     */
32
    public function getOption(): string
33
    {
34
        return $this->option;
35
    }
36
}