PrivateAppCredentials   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 36
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPassword() 0 3 1
A __construct() 0 4 1
A getApiKey() 0 3 1
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