ApiDetails   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 91
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 7
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 91
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A setRefreshToken() 0 4 1
A getRefreshToken() 0 4 1
A getClientId() 0 4 1
A getSecret() 0 4 1
A getRedirectUri() 0 4 1
A getDevToken() 0 4 1
1
<?php
2
namespace Werkspot\BingAdsApiBundle\Model;
3
4
class ApiDetails
5
{
6
    /**
7
     * @var string
8
     */
9
    private $refreshToken;
10
11
    /**
12
     * @var string
13
     */
14
    private $clientId;
15
16
    /**
17
     * @var string
18
     */
19
    private $secret;
20
21
    /**
22
     * @var string
23
     */
24
    private $redirectUri;
25
26
    /**
27
     * @var string
28
     */
29
    private $devToken;
30
31
    /**
32
     * @param string $refreshToken
33
     * @param string $clientId
34
     * @param string $secret
35
     * @param string $redirectUri
36
     * @param string $devToken
37
     */
38
    public function __construct($refreshToken, $clientId, $secret, $redirectUri, $devToken)
39
    {
40
        $this->refreshToken = $refreshToken;
41
        $this->clientId = $clientId;
42
        $this->secret = $secret;
43
        $this->redirectUri = $redirectUri;
44
        $this->devToken = $devToken;
45
    }
46
47
    /**
48
     * @param string $refreshToken
49
     */
50
    public function setRefreshToken($refreshToken)
51
    {
52
        $this->refreshToken = $refreshToken;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getRefreshToken()
59
    {
60
        return $this->refreshToken;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getClientId()
67
    {
68
        return $this->clientId;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getSecret()
75
    {
76
        return $this->secret;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getRedirectUri()
83
    {
84
        return $this->redirectUri;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getDevToken()
91
    {
92
        return $this->devToken;
93
    }
94
}
95