Completed
Pull Request — master (#4)
by Risan Bagja
02:18 queued 51s
created

RequestConfigFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 6 1
1
<?php
2
3
namespace Risan\OAuth1\Request;
4
5
use Risan\OAuth1\Config;
6
use Risan\OAuth1\Signature\HmacSha1Signer;
7
8
class RequestConfigFactory
9
{
10
    public static function create(array $configurations)
11
    {
12
        $config = Config::createFromArray($configurations);
13
14
        return new RequestConfig($config, new HmacSha1Signer, new NonceGenerator);
15
    }
16
}
17