Application::getHelp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This software package is licensed under `AGPL, Commercial` license[s].
5
 *
6
 * @package maslosoft/zamm
7
 * @license AGPL, Commercial
8
 *
9
 * @copyright Copyright (c) Peter Maselkowski <[email protected]>
10
 * @link https://maslosoft.com/zamm/
11
 */
12
13
namespace Maslosoft\Zamm\Application;
14
15
use Maslosoft\Zamm\Commands\SingleCommand;
16
use Maslosoft\Zamm\Zamm;
17
use Symfony\Component\Console\Application as ConsoleApplication;
18
use Symfony\Component\Console\Command\Command;
19
20
/**
21
 * Application
22
 *
23
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
24
 */
25
class Application extends ConsoleApplication
26
{
27
28
	/**
29
	 * Logo
30
	 * font: slant
31
	 */
32
	const Logo = <<<LOGO
0 ignored issues
show
Coding Style introduced by
Constant Logo should be defined in uppercase
Loading history...
33
 _____
34
/__  /  ____ _____ ___  ____ ___
35
  / /  / __ `/ __ `__ \/ __ `__ \
36
 / /__/ /_/ / / / / / / / / / / /
37
/____/\__,_/_/ /_/ /_/_/ /_/ /_/
38
39
40
LOGO;
41
42
	public function __construct()
43
	{
44
		parent::__construct('Zamm', require __DIR__ . '/../version.php');
45
	}
46
47
	public function getHelp()
48
	{
49
		return self::Logo . parent::getHelp();
50
	}
51
52
    /**
53
     * Gets the default commands that should always be available.
54
     * 
55
     * @return Command[] An array of default Command instances
56
     */
57
	public function getDefaultCommands()
58
	{
59
		$commands = parent::getDefaultCommands();
60
61
		$commands[] = new SingleCommand();
62
63
		return $commands;
64
	}
65
66
}
67