Passed
Push — master ( 2b0e69...0701c6 )
by Luis
39s queued 11s
created

GeneratorCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
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
8
namespace PhUml\Console\Commands;
9
10
use PhUml\Console\ProgressDisplay;
11
use Symfony\Component\Console\Command\Command;
0 ignored issues
show
Bug introduced by
The type Symfony\Component\Console\Command\Command 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
 * All commands provide visual feedback about the progress of the current task to the user
15
 *
16
 * @see ProcessorProgressDisplay for the details about the feedback provided by the display
17
 */
18
class GeneratorCommand extends Command
19
{
20
    protected const SUCCESS = 0;
21
22
    /** @var ProgressDisplay */
23 72
    protected $display;
24
25 72
    public function __construct(ProgressDisplay $display)
26 72
    {
27 72
        parent::__construct();
28
        $this->display = $display;
29
    }
30
}
31