Completed
Push — master ( 8507e2...2d694e )
by Lars
01:39
created

TypeCheckArray   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Arrayy\TypeCheck;
4
5
use Arrayy\Arrayy;
6
use Arrayy\ArrayyIterator;
7
8
class TypeCheckArray extends \Arrayy\ArrayyStrict
9
{
10 67
    public function __construct($data = [], string $iteratorClass = ArrayyIterator::class, bool $checkPropertiesInConstructor = true)
11
    {
12 67
        $this->properties[Arrayy::ARRAYY_HELPER_TYPES_FOR_ALL_PROPERTIES] = new TypeCheckSimple(TypeCheckInterface::class);
13
14 67
        parent::__construct($data, $iteratorClass, $checkPropertiesInConstructor);
15 67
    }
16
}
17