Account::getApiHost()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the XabbuhPandaClient package.
5
 *
6
 * (c) Christian Flothmann <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Xabbuh\PandaClient\Api;
13
14
/**
15
 * Representation of a panda account.
16
 *
17
 * @author Christian Flothmann <[email protected]>
18
 */
19
class Account
20
{
21
    /**
22
     * The access key
23
     * @var string
24
     */
25
    private $accessKey;
26
27
    /**
28
     * The secret key
29
     * @var string
30
     */
31
    private $secretKey;
32
33
    /**
34
     * The api host
35
     * @var string
36
     */
37
    private $apiHost;
38
39
    /**
40
     * Constructs an Account with the given authorisation data.
41
     *
42
     * @param string $accessKey The access key
43
     * @param string $secretKey The secret key
44
     * @param string $apiHost   The api host
45
     */
46 26
    public function __construct($accessKey, $secretKey, $apiHost)
47
    {
48 26
        $this->accessKey = $accessKey;
49 26
        $this->secretKey = $secretKey;
50 26
        $this->apiHost = $apiHost;
51 26
    }
52
53
    /**
54
     * Returns the access key.
55
     *
56
     * @return string
57
     */
58 15
    public function getAccessKey()
59
    {
60 15
        return $this->accessKey;
61
    }
62
63
    /**
64
     * Returns the secret key.
65
     *
66
     * @return string
67
     */
68 17
    public function getSecretKey()
69
    {
70 17
        return $this->secretKey;
71
    }
72
73
    /**
74
     * Returns the api host.
75
     *
76
     * @return string
77
     */
78 17
    public function getApiHost()
79
    {
80 17
        return $this->apiHost;
81
    }
82
}
83