NoteMenu   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

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