Completed
Push — master ( 9eb332...ef5bef )
by Arne
02:27
created

Application::getHelp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Storeman\Cli;
4
5
use Storeman\Cli\Helper\DisplayIndexHelper;
6
7
class Application extends \Symfony\Component\Console\Application
8
{
9
    public const LOGO =  <<<TXT
10
  ____  _                                       
11
 / ___|| |_ ___  _ __ ___ _ __ ___   __ _ _ __  
12
 \___ \| __/ _ \| '__/ _ \ '_ ` _ \ / _` | '_ \ 
13
  ___) | || (_) | | |  __/ | | | | | (_| | | | |
14
 |____/ \__\___/|_|  \___|_| |_| |_|\__,_|_| |_|
15
16
17
TXT;
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getHelp()
23
    {
24
        return static::LOGO . parent::getHelp();
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    protected function getDefaultHelperSet()
31
    {
32
        $helperSet = parent::getDefaultHelperSet();
33
        $helperSet->set(new DisplayIndexHelper());
34
35
        return $helperSet;
36
    }
37
}
38