FrameCollectionFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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