Passed
Push — master ( a03a4b...6d9a81 )
by BruceScrutinizer
02:55
created

createEmptyChangeableProcessedFile()   A

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
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace NamespaceProtector\Result\Factory;
4
5
use NamespaceProtector\Result\ErrorResult;
6
use NamespaceProtector\Result\ResultCollected;
7
use NamespaceProtector\Result\ResultCollectedInterface;
8
9
final class CollectedFactory extends AbstractCollectionFactory
10
{
11
    /**
12
     * @return ResultCollected<ErrorResult>
13
     */
14
    public function createForErrorResult(): ResultCollected //todo: move to another factory
15
    {
16
        return new ResultCollected();
17
    }
18
19
    public function createChangeableProcessedFile(array $list): ResultCollectedInterface
20
    {
21
        return new ResultCollected($list);
22
    }
23
24
    public function createEmptyChangeableProcessedFile(): ResultCollectedInterface
25
    {
26
        return  new ResultCollected();
27
    }
28
}
29