Completed
Push — master ( d83f32...d4821e )
by Rémi
04:29
created

CodebirdFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php
2
3
namespace Twitter\API\REST\Factory;
4
5
use Codebird\Codebird;
6
7
class CodebirdFactory
8
{
9
    /**
10
     * Builds a codebird instance
11
     *
12
     * @param  string $consumerKey
13
     * @param  string $consumerSecret
14
     * @return Codebird
15
     */
16 3
    public function build(
17
        $consumerKey,
18
        $consumerSecret
19
    ) {
20 3
        Codebird::setConsumerKey($consumerKey, $consumerSecret);
21 3
        return new Codebird();
22
    }
23
}
24