NoteMenu::getQuestion()   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\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
}