Location::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace AL\Common\Model\Location;
3
4
/**
5
 * Maps to the `location` table
6
 */
7
class Location {
8
    private $id;
9
    private $continent_code;
10
    private $name;
11
    private $country_iso2;
12
    private $country_iso3;
13
    private $type;
14
15
    public function __construct($id, $continent_code, $name, $country_iso2, $country_iso3, $type) {
16
        $this->id = $id;
17
        $this->continent_code = $continent_code;
18
        $this->name = $name;
19
        $this->country_iso2 = $country_iso2;
20
        $this->country_iso3 = $country_iso3;
21
        $this->type = $type;
22
    }
23
24
    public function getId() {
25
        return $this->id;
26
    }
27
28
    public function getContinentCode() {
29
        return $this->continent_code;
30
    }
31
32
    public function getName() {
33
        return $this->name;
34
    }
35
36
    public function getCountryISO2() {
37
        return $this->country_iso2;
38
    }
39
40
    public function getType() {
41
        return $this->type;
42
    }
43
}
44