Passed
Push — master ( e4531b...a6f95b )
by Smoren
02:40
created

StepSequence   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Smoren\Sequence\Structs;
4
5
/**
6
 * @template T
7
 * @extends Sequence<T>
8
 */
9
abstract class StepSequence extends Sequence
10
{
11
    /**
12
     * @var T
0 ignored issues
show
Bug introduced by
The type Smoren\Sequence\Structs\T 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...
13
     */
14
    protected $step;
15
16
    /**
17
     * @param T $start
18
     * @param int<0, max>|null $size
19
     * @param T $step
20
     */
21 11
    public function __construct($start, ?int $size, $step)
22
    {
23 11
        parent::__construct($start, $size);
24 11
        $this->step = $step;
25
    }
26
}
27