Passed
Push — develop ( 7f636c...ba33e7 )
by Alessandro
48s
created

Auth   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setToken() 0 3 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: aless
5
 * Date: 13/03/2019
6
 * Time: 14:13
7
 */
8
9
namespace Bitlywrap\Auth;
10
11
use Bitlywrap\Interfaces\AuthInterface;
12
13
class Auth implements AuthInterface
14
{
15
    /**
16
     * @var string
17
     */
18
    private $token;
19
20
    /**
21
     * AuthInterface constructor.
22
     *
23
     * @param string $token
24
     */
25 1
    public function __construct(string $token)
26
    {
27 1
        $this->setToken($token);
28 1
    }
29
30
    /**
31
     * @param $token
32
     */
33 1
    private function setToken($token)
34
    {
35 1
        $this->token = $token;
36 1
    }
37
}
38