Location   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCountryISO2() 0 2 1
A getId() 0 2 1
A getType() 0 2 1
A getContinentCode() 0 2 1
A __construct() 0 7 1
A getName() 0 2 1
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