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

DocumentIssuer   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 87
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 87
rs 10
c 0
b 0
f 0
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setRegName() 0 3 1
A getComName() 0 2 1
A setComName() 0 3 1
A getIdDocNumber() 0 2 1
A setIdDocNumber() 0 3 1
A getRegName() 0 2 1
A setIdDocType() 0 3 1
A setPostalAddress() 0 3 1
A getIdDocType() 0 2 1
A getPostalAddress() 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
/**
14
 * DocumentIssuer
15
 * 
16
 * This represents the entity that generates the document
17
 */
18
class DocumentIssuer {
19
20
    /**
21
     * The company's identification document type
22
     * 
23
     * Default: 6 = RUC
24
     * 
25
     * @var string 
26
     */
27
    private $idDocType = '6';
28
29
    /**
30
     * The company's identification document number
31
     * 
32
     * Default: RUC Number
33
     * 
34
     * @var string 
35
     */
36
    private $idDocNumber;
37
38
    /**
39
     * The company's registration name
40
     * 
41
     * Default: Razón Social
42
     * 
43
     * @var string 
44
     */
45
    private $regName;
46
47
    /**
48
     * The company's commercial name
49
     * 
50
     * Default: Nombre comercial
51
     * 
52
     * @var string 
53
     */
54
    private $comName;
55
56
    /**
57
     * The company's postal address.
58
     * @var PostalAddress
59
     */
60
    private $postalAddress;
61
62
    public function getIdDocType() {
63
        return $this->idDocType;
64
    }
65
66
    public function getIdDocNumber() {
67
        return $this->idDocNumber;
68
    }
69
70
    public function getRegName() {
71
        return $this->regName;
72
    }
73
74
    public function getComName() {
75
        return $this->comName;
76
    }
77
78
    public function getPostalAddress() {
79
        return $this->postalAddress;
80
    }
81
82
    public function setIdDocType($idDocType) {
83
        $this->idDocType = $idDocType;
84
        return $this;
85
    }
86
87
    public function setIdDocNumber($idDocNumber) {
88
        $this->idDocNumber = $idDocNumber;
89
        return $this;
90
    }
91
92
    public function setRegName($regName) {
93
        $this->regName = $regName;
94
        return $this;
95
    }
96
97
    public function setComName($comName) {
98
        $this->comName = $comName;
99
        return $this;
100
    }
101
102
    public function setPostalAddress(PostalAddress $postalAddress) {
103
        $this->postalAddress = $postalAddress;
104
        return $this;
105
    }
106
107
}
108