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

Application   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 31
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getHelp() 0 4 1
A getDefaultHelperSet() 0 7 1
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