AuthenticatedMenu   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuestion() 0 4 1
A getChoices() 0 7 1
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
}