Passed
Push — master ( b1e93f...10cd5c )
by Jhao
02:12
created

TrackingOperationCountry::getNameEN()   A

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
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of RussianPost SDK package.
5
 *
6
 * © Appwilio (http://appwilio.com), greabock (https://github.com/greabock), JhaoDa (https://github.com/jhaoda)
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
declare(strict_types=1);
13
14
namespace Appwilio\RussianPostSDK\Tracking\Single;
15
16
class TrackingOperationCountry
17
{
18
    /** @var int */
19
    private $Id;
20
21
    /** @var string */
22
    private $Code2A;
23
24
    /** @var string */
25
    private $Code3A;
26
27
    /** @var string */
28
    private $NameRU;
29
30
    /** @var string */
31
    private $NameEN;
32
33
    /**
34
     * Код страны.
35
     *
36
     * @return int
37
     */
38 1
    public function getId(): int
39
    {
40 1
        return $this->Id;
41
    }
42
43
    /**
44
     * Двухбуквенный идентификатор страны.
45
     *
46
     * @link https://tracking.pochta.ru/support/dictionaries/countries
47
     *
48
     * @return string
49
     */
50 1
    public function getCode2A(): string
51
    {
52 1
        return $this->Code2A;
53
    }
54
55
    /**
56
     * Трехбуквенный идентификатор страны.
57
     *
58
     * @link https://tracking.pochta.ru/support/dictionaries/countries
59
     *
60
     * @return string
61
     */
62 1
    public function getCode3A(): string
63
    {
64 1
        return $this->Code3A;
65
    }
66
67
    /**
68
     * Российское название страны.
69
     *
70
     * @link https://tracking.pochta.ru/support/dictionaries/countries
71
     *
72
     * @return string
73
     */
74 1
    public function getNameRU(): string
75
    {
76 1
        return $this->NameRU;
77
    }
78
79
    /**
80
     * Международное название страны.
81
     *
82
     * @link https://tracking.pochta.ru/support/dictionaries/countries
83
     *
84
     * @return string
85
     */
86 1
    public function getNameEN(): string
87
    {
88 1
        return $this->NameEN;
89
    }
90
}
91