FrameCollectionFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlecRabbit\Spinner\Core\Factory;
6
7
use AlecRabbit\Spinner\Core\Contract\IFrameCollection;
8
use AlecRabbit\Spinner\Core\Factory\Contract\IFrameCollectionFactory;
9
use AlecRabbit\Spinner\Core\FrameCollection;
10
use Traversable;
11
12
final class FrameCollectionFactory implements IFrameCollectionFactory
13
{
14
    public function create(Traversable $frames): IFrameCollection
15
    {
16
        return new FrameCollection($frames);
17
    }
18
}
19