StoreSiteSelectorChoice::getCountry()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Huawei\IAP;
4
5
/**
6
 * Class StoreSiteSelectorChoice
7
 *
8
 * A result of StoreSiteSelector
9
 * Can be useful for statistics. For example, to measure request time between different store sites.
10
 *
11
 * @package Huawei\IAP
12
 */
13
class StoreSiteSelectorChoice
14
{
15
    private $country;
16
    private $siteUrl;
17
    private $appTouchSite;
18
19 18
    public function __construct(string $country, string $siteUrl, bool $appTouchSite)
20
    {
21 18
        $this->country = $country;
22 18
        $this->siteUrl = $siteUrl;
23 18
        $this->appTouchSite = $appTouchSite;
24 18
    }
25
26
    /**
27
     * @return string
28
     */
29 18
    public function getCountry(): string
30
    {
31 18
        return $this->country;
32
    }
33
34
    /**
35
     * @return string
36
     */
37 18
    public function getSiteUrl(): string
38
    {
39 18
        return $this->siteUrl;
40
    }
41
42
    /**
43
     * @return bool
44
     */
45 18
    public function isAppTouchSite(): bool
46
    {
47 18
        return $this->appTouchSite;
48
    }
49
}
50