AuthenticatedMenu::getChoices()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
namespace BarenoteCli\Command\Menu;
3
4
5
use BarenoteCli\Command\Note\NoteMenu;
6
7
class AuthenticatedMenu extends Menu
8
{
9
    const KEY = 'barenote:postlogin:menu';
10
11
    /**
12
     * @return string
13
     */
14
    protected function getQuestion()
15
    {
16
        return 'What do you want to do?';
17
    }
18
19
    /**
20
     * @return Choice[]
21
     */
22
    protected function getChoices()
23
    {
24
        return [
25
            new Choice(NoteMenu::KEY, 'Something with notes'),
26
            new Choice(null, 'Actually nothing, exit this app'),
27
        ];
28
    }
29
}