Completed
Push — master ( 0f6ac6...c701d2 )
by WEBEWEB
01:05
created

Commune::getCodeDepartement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the geo-api-library package.
5
 *
6
 * (c) 2020 WEBEWEB
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
namespace WBW\Library\GeoAPI\Model;
13
14
use WBW\Library\GeoAPI\Model\Attribute\FloatScoreTrait;
15
use WBW\Library\GeoAPI\Model\Attribute\StringCodeRegionTrait;
16
use WBW\Library\GeoAPI\Model\Attribute\StringCodeTrait;
17
use WBW\Library\GeoAPI\Model\Attribute\StringNomTrait;
18
19
/**
20
 * Commune.
21
 *
22
 * @author webeweb <https://github.com/webeweb/>
23
 * @package WBW\Library\GeoAPI\Model
24
 */
25
class Commune {
26
27
    use FloatScoreTrait;
28
    use StringCodeRegionTrait;
29
    use StringCodeTrait;
30
    use StringNomTrait;
31
32
    /**
33
     * Code département.
34
     *
35
     * @var string
36
     */
37
    private $codeDepartement;
38
39
    /**
40
     * Codes postaux.
41
     *
42
     * @var string[]
43
     */
44
    private $codesPostaux;
45
46
    /**
47
     * Population.
48
     *
49
     * @var int
50
     */
51
    private $population;
52
53
    /**
54
     * Constructor.
55
     */
56
    public function __construct() {
57
        // NOTHING TO TO.
58
    }
59
60
    /**
61
     * Get the code département.
62
     *
63
     * @return string Returns the code département.
64
     */
65
    public function getCodeDepartement() {
66
        return $this->codeDepartement;
67
    }
68
69
    /**
70
     * Get the codes postaux.
71
     *
72
     * @return string[] Returns the codes postaux.
73
     */
74
    public function getCodesPostaux() {
75
        return $this->codesPostaux;
76
    }
77
78
    /**
79
     * Get the population.
80
     *
81
     * @return int Returns the population.
82
     */
83
    public function getPopulation() {
84
        return $this->population;
85
    }
86
87
    /**
88
     * Set the code département.
89
     *
90
     * @param string $codeDepartement The code département.
91
     * @return Commune Returns this commune.
92
     */
93
    public function setCodeDepartement($codeDepartement) {
94
        $this->codeDepartement = $codeDepartement;
95
        return $this;
96
    }
97
98
    /**
99
     * Set the codes postaux.
100
     *
101
     * @param string[] $codesPostaux The codes postaux.
102
     * @return Commune Returns this commune.
103
     */
104
    public function setCodesPostaux($codesPostaux) {
105
        $this->codesPostaux = $codesPostaux;
106
        return $this;
107
    }
108
109
    /**
110
     * Set the population.
111
     *
112
     * @param int $population The population.
113
     * @return Commune Returns this commune.
114
     */
115
    public function setPopulation($population) {
116
        $this->population = $population;
117
        return $this;
118
    }
119
}