Passed
Push — master ( d62147...276eed )
by Alexander
02:12
created

CachedCollection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCollection() 0 3 1
A setCollection() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Cycle\DataReader\Cache;
6
7
final class CachedCollection
8
{
9
    private ?iterable $collection = null;
10
    public function setCollection(iterable $collection): void
11
    {
12
        $this->collection = $collection;
13
    }
14
15
    public function getCollection(): ?iterable
16
    {
17
        return $this->collection;
18
    }
19
}
20