Failed Conditions
Push — master ( 6fca32...0b1cfb )
by Michał
02:10
created

NoteMenu   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSlug() 0 4 1
A getQuestion() 0 4 1
A getChoices() 0 9 1
1
<?php
2
namespace BarenoteCli\Command\Note;
3
4
5
use BarenoteCli\Command\Menu\Choice;
6
use BarenoteCli\Command\Menu\Menu;
7
8
class NoteMenu extends Menu
9
{
10
    protected function getSlug()
11
    {
12
        return 'note';
13
    }
14
    
15
    protected function getQuestion()
16
    {
17
        return 'What do you want to do with your notes?';
18
    }
19
    
20
    protected function getChoices()
21
    {
22
        return [
23
            new Choice('barenote:note:list', 'view list'),
24
            new Choice('barenote:note:one', 'view one'),
25
            new Choice('barenote:note:create', 'create new'),
26
            new Choice(null, 'exit this menu'),
27
        ];
28
    }
29
    
30
}