Completed
Push — master ( 5e9615...0f6ac6 )
by WEBEWEB
02:26
created

Commune::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
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
     * Population.
34
     *
35
     * @var int
36
     */
37
    private $population;
38
39
    /**
40
     * Constructor.
41
     */
42
    public function __construct() {
43
        // NOTHING TO TO.
44
    }
45
46
    /**
47
     * Get the population.
48
     *
49
     * @return int Returns the population.
50
     */
51
    public function getPopulation() {
52
        return $this->population;
53
    }
54
55
    /**
56
     * Set the population.
57
     *
58
     * @param int $population The population.
59
     * @return Commune Returns this commune.
60
     */
61
    public function setPopulation($population) {
62
        $this->population = $population;
63
        return $this;
64
    }
65
}