Choice   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 33
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getCommand() 0 4 1
A getOption() 0 4 1
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
}