DeviceToken   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 51
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getToken() 0 4 1
A setToken() 0 6 1
A getExpiresIn() 0 4 1
A setExpiresIn() 0 6 1
1
<?php
2
namespace CultureKings\Afterpay\Model\InStore;
3
4
/**
5
 * Class DeviceToken
6
 * @package CultureKings\Afterpay\Model\InStore
7
 */
8
class DeviceToken
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $token;
14
    /**
15
     * @var int
16
     */
17
    protected $expiresIn;
18
19
    /**
20
     * @return string
21
     */
22
    public function getToken()
23
    {
24
        return $this->token;
25
    }
26
27
    /**
28
     * @param string $token
29
     *
30
     * @return $this
31
     */
32
    public function setToken($token)
33
    {
34
        $this->token = $token;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return int
41
     */
42
    public function getExpiresIn()
43
    {
44
        return $this->expiresIn;
45
    }
46
47
    /**
48
     * @param int $expiresIn
49
     *
50
     * @return $this
51
     */
52
    public function setExpiresIn($expiresIn)
53
    {
54
        $this->expiresIn = $expiresIn;
55
56
        return $this;
57
    }
58
}
59