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

NoteMenu::getChoices()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
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
}