PhUmlApplication::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
ccs 5
cts 5
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
/**
3
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
4
 */
5
6
namespace PhUml\Console;
7
8
use PhUml\Console\Commands\GenerateClassDiagramCommand;
9
use PhUml\Console\Commands\GenerateDotFileCommand;
10
use PhUml\Console\Commands\GenerateStatisticsCommand;
11
use Symfony\Component\Console\Application;
0 ignored issues
show
Bug introduced by
The type Symfony\Component\Console\Application was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
13
/**
14
 * Console application to generate UML class diagrams and the statistics of an OO codebase
15
 *
16
 * It provides 3 commands
17
 *
18
 * 1. `phuml:diagram` to generate a class diagram in `png` format
19
 * 2. `phuml:statistics` to generate a text file with statistics
20
 * 3. `phuml:dot` to generate a text file with a digraph in DOT format ready to create a class diagram
21
 */
22
final class PhUmlApplication extends Application
23
{
24 17
    public function __construct()
25
    {
26
        // This will be replaced by Box with a version number if it's a PHAR, 1.6.1 for instance
27 17
        parent::__construct('phUML', '@package_version@');
28 17
        $this->add(new GenerateClassDiagramCommand());
29 17
        $this->add(new GenerateStatisticsCommand());
30 17
        $this->add(new GenerateDotFileCommand());
31
    }
32
}
33