ApiDetails::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 6
nc 1
nop 5
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