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

CodebirdFactory::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
crap 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