Passed
Push — feature/container-factory ( 5aed48...636d71 )
by Chema
03:27
created

Factory   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 2
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCachedSeed() 0 3 1
A getRandomStringValue() 0 3 1
A getRandomSeed() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\ContainerFactory\Module;
6
7
use Gacela\Framework\AbstractFactory;
8
use GacelaTest\Fixtures\StringValue;
9
10
final class Factory extends AbstractFactory
11
{
12
    public function getCachedSeed(): string
13
    {
14
        return $this->getProvidedDependency(DependencyProvider::CACHED_SEED);
15
    }
16
17
    public function getRandomSeed(): string
18
    {
19
        return $this->getProvidedDependency(DependencyProvider::RANDOM_SEED);
20
    }
21
22
    public function getRandomStringValue(): StringValue
23
    {
24
        return $this->getProvidedDependency(DependencyProvider::RANDOM_STRING_VALUE);
25
    }
26
}
27