Test Failed
Pull Request — develop (#11)
by Alessandro
01:22
created

Auth::setToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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
12
use Bitlywrap\Interfaces\AuthInterface;
13
14
class Auth implements AuthInterface
15
{
16
    /**
17
     * @var string
18
     */
19
    private $token;
20
21
    /**
22
     * AuthInterface constructor.
23
     *
24
     * @param string $token
25
     */
26 1
    public function __construct(string $token)
27
    {
28 1
        $this->setToken($token);
29 1
    }
30
31
    /**
32
     * @param $token
33
     */
34 1
    private function setToken($token)
35
    {
36 1
        $this->token = $token;
37
    }
38
}