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

AuthenticatedMenu::getChoices()   A

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
class AuthenticatedMenu extends Menu
6
{
7
    /**
8
     * @return string
9
     */
10
    protected function getSlug()
11
    {
12
        return 'postauth';
13
    }
14
    
15
    /**
16
     * @return string
17
     */
18
    protected function getQuestion()
19
    {
20
        return 'What do you want to do?';
21
    }
22
    
23
    /**
24
     * @return Choice[]
25
     */
26
    protected function getChoices()
27
    {
28
        return [
29
            new Choice('barenote:note:menu', 'Something with notes'),
30
            new Choice(null, 'Actually nothing, exit this app'),
31
        ];
32
    }
33
}