Application::getHelp()   A
last analyzed

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\DisplayIndexComparisonHelper;
6
use Storeman\Cli\Helper\DisplayIndexHelper;
7
8
class Application extends \Symfony\Component\Console\Application
9
{
10
    public const LOGO =  <<<TXT
11
  ____  _                                       
12
 / ___|| |_ ___  _ __ ___ _ __ ___   __ _ _ __  
13
 \___ \| __/ _ \| '__/ _ \ '_ ` _ \ / _` | '_ \ 
14
  ___) | || (_) | | |  __/ | | | | | (_| | | | |
15
 |____/ \__\___/|_|  \___|_| |_| |_|\__,_|_| |_|
16
17
18
TXT;
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getHelp()
24
    {
25
        return static::LOGO . parent::getHelp();
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    protected function getDefaultHelperSet()
32
    {
33
        $helperSet = parent::getDefaultHelperSet();
34
        $helperSet->set(new DisplayIndexComparisonHelper());
35
        $helperSet->set(new DisplayIndexHelper());
36
37
        return $helperSet;
38
    }
39
}
40