PrivateAppCredentials::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace CodeCloud\Bundle\ShopifyBundle\Api;
4
5
/**
6
 * Shopify Credentials used by Private Apps.
7
 * You generally obtain these from the Shopify Admin Area.
8
 */
9
class PrivateAppCredentials
10
{
11
    /**
12
     * @var string
13
     */
14
    private $apiKey;
15
16
    /**
17
     * @var string
18
     */
19
    private $password;
20
21
    /**
22
     * @param string $apiKey
23
     * @param string $password
24
     */
25
    public function __construct($apiKey, $password)
26
    {
27
        $this->apiKey = $apiKey;
28
        $this->password = $password;
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getApiKey()
35
    {
36
        return $this->apiKey;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getPassword()
43
    {
44
        return $this->password;
45
    }
46
}
47