Passed
Push — parser-refactoring ( e758c6...b54cbd )
by Luis
11:11
created

PhUmlApplication::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * PHP version 7.1
4
 *
5
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
6
 */
7
namespace PhUml\Console;
8
9
use PhUml\Console\Commands\GenerateClassDiagramCommand;
10
use PhUml\Console\Commands\GenerateDotFileCommand;
11
use PhUml\Console\Commands\GenerateStatisticsCommand;
12
use Symfony\Component\Console\Application;
13
14
class PhUmlApplication extends Application
15
{
16
    /**
17
     * @throws \Symfony\Component\Console\Exception\LogicException
18
     */
19
    public function __construct(ProgressDisplay $display)
20
    {
21
        parent::__construct('phUML', '1.0.0');
22
        $this->add(new GenerateClassDiagramCommand($display));
23
        $this->add(new GenerateStatisticsCommand($display));
24
        $this->add(new GenerateDotFileCommand($display));
25
    }
26
}
27