SenderReceiver::getCountryCode()   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
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Xavier
5
 * Date: 02/06/16
6
 * Time: 14:53
7
 */
8
9
namespace Savjee\BpostTrack;
10
11
12
class SenderReceiver
13
{
14
    private $countryCode;
15
    private $municipality;
16
    private $name;
17
    private $zipcode;
18
19
    public function __construct($countryCode, $municipality, $zipcode, $name = '')
20
    {
21
        $this->setCountryCode($countryCode);
22
        $this->setMunicipality($municipality);
23
        $this->setZipcode($zipcode);
24
        $this->setName($name);
25
    }
26
27
    /**
28
     * @return mixed
29
     */
30
    public function getCountryCode()
31
    {
32
        return $this->countryCode;
33
    }
34
35
    /**
36
     * @param mixed $countryCode
37
     */
38
    public function setCountryCode($countryCode)
39
    {
40
        $this->countryCode = $countryCode;
41
    }
42
43
    /**
44
     * @return mixed
45
     */
46
    public function getMunicipality()
47
    {
48
        return $this->municipality;
49
    }
50
51
    /**
52
     * @param mixed $municipality
53
     */
54
    public function setMunicipality($municipality)
55
    {
56
        $this->municipality = $municipality;
57
    }
58
59
    /**
60
     * @return mixed
61
     */
62
    public function getName()
63
    {
64
        return $this->name;
65
    }
66
67
    /**
68
     * @param mixed $name
69
     */
70
    public function setName($name)
71
    {
72
        $this->name = $name;
73
    }
74
75
    /**
76
     * @return mixed
77
     */
78
    public function getZipcode()
79
    {
80
        return $this->zipcode;
81
    }
82
83
    /**
84
     * @param mixed $zipcode
85
     */
86
    public function setZipcode($zipcode)
87
    {
88
        $this->zipcode = $zipcode;
89
    }
90
}