Test Failed
Push — master ( c55034...101a53 )
by JAIME ELMER
03:40
created

PostalAddress   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 29
dl 0
loc 71
rs 10
c 0
b 0
f 0
wmc 14

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getCountrySubentity() 0 2 1
A setId() 0 3 1
A getCountryCode() 0 2 1
A setDistrict() 0 3 1
A getId() 0 2 1
A getStreetName() 0 2 1
A setCountrySubentity() 0 3 1
A setStreetName() 0 3 1
A getCitySubdivisionName() 0 2 1
A getDistrict() 0 2 1
A setCitySubdivisionName() 0 3 1
A setCityName() 0 3 1
A setCountryCode() 0 3 1
A getCityName() 0 2 1
1
<?php
2
3
/**
4
 * MÓDULO DE EMISIÓN ELECTRÓNICA F72X
5
 * UBL 2.1
6
 * Version 1.0
7
 * 
8
 * Copyright 2019, Jaime Cruz
9
 */
10
11
namespace F72X\Object;
12
13
class PostalAddress {
14
15
    private $id;
16
    private $streetName;
17
    private $citySubdivisionName;
18
    private $cityName;
19
    private $countrySubentity;
20
    private $district;
21
    private $countryCode = 'PE';
22
23
    public function getId() {
24
        return $this->id;
25
    }
26
27
    public function getStreetName() {
28
        return $this->streetName;
29
    }
30
31
    public function getCitySubdivisionName() {
32
        return $this->citySubdivisionName;
33
    }
34
35
    public function getCityName() {
36
        return $this->cityName;
37
    }
38
39
    public function getCountrySubentity() {
40
        return $this->countrySubentity;
41
    }
42
43
    public function getDistrict() {
44
        return $this->district;
45
    }
46
47
    public function getCountryCode() {
48
        return $this->countryCode;
49
    }
50
51
    public function setId($id) {
52
        $this->id = $id;
53
        return $this;
54
    }
55
56
    public function setStreetName($streetName) {
57
        $this->streetName = $streetName;
58
        return $this;
59
    }
60
61
    public function setCitySubdivisionName($citySubdivisionName) {
62
        $this->citySubdivisionName = $citySubdivisionName;
63
        return $this;
64
    }
65
66
    public function setCityName($cityName) {
67
        $this->cityName = $cityName;
68
        return $this;
69
    }
70
71
    public function setCountrySubentity($countrySubentity) {
72
        $this->countrySubentity = $countrySubentity;
73
        return $this;
74
    }
75
76
    public function setDistrict($district) {
77
        $this->district = $district;
78
        return $this;
79
    }
80
81
    public function setCountryCode($countryCode) {
82
        $this->countryCode = $countryCode;
83
        return $this;
84
    }
85
86
}
87