Token   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 40
wmc 3
lcom 0
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getValue() 0 4 1
A getName() 0 4 1
1
<?php
2
3
namespace VideoPublisher\Security;
4
5
/**
6
 * Class Token.
7
 *
8
 * @author Bart Malestein <[email protected]>
9
 */
10
class Token
11
{
12
    /**
13
     * @var string
14
     */
15
    private $value;
16
17
    /**
18
     * @var string
19
     */
20
    private $name;
21
22
23
    /**
24
     * Token constructor.
25
     * @param string $value
26
     * @param string $name
27
     */
28
    public function __construct($value, $name = 'xauth-token')
29
    {
30
        $this->value = $value;
31
        $this->name = $name;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getValue()
38
    {
39
        return $this->value;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getName()
46
    {
47
        return $this->name;
48
    }
49
}