Passed
Push — master ( 9809e6...2762a5 )
by Mr
01:45
created

JobDefinitionMap::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace Daikon\AsyncJob\Job;
4
5
use Daikon\DataStructure\TypedMapTrait;
6
7
final class JobDefinitionMap implements \IteratorAggregate, \Countable
8
{
9
    use TypedMapTrait;
10
11
    public function __construct(array $jobs = [])
12
    {
13
        $this->init($jobs, JobDefinitionInterface::class);
0 ignored issues
show
Bug introduced by
$jobs of type array is incompatible with the type iterable expected by parameter $items of Daikon\AsyncJob\Job\JobDefinitionMap::init(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

13
        $this->init(/** @scrutinizer ignore-type */ $jobs, JobDefinitionInterface::class);
Loading history...
14
    }
15
}
16