Failed Conditions
Push — v7 ( a687dc...e264c8 )
by Florent
02:28
created

RandomGeneratorFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRandomGenerator() 0 6 1
1
<?php
2
3
namespace Jose\Component\Core\Util\Ecc\Random;
4
5
use Jose\Component\Core\Util\Ecc\Math\MathAdapterFactory;
6
7
final class RandomGeneratorFactory
8
{
9
    /**
10
     * @return RandomNumberGenerator
11
     */
12
    public static function getRandomGenerator()
13
    {
14
        return new RandomNumberGenerator(
15
            MathAdapterFactory::getAdapter()
16
        );
17
    }
18
}
19