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

PhUmlApplication   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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