1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace ControleOnline\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* ServiceInvoiceTax |
9
|
|
|
* |
10
|
|
|
* @ORM\Table(name="service_invoice_tax", uniqueConstraints={@ORM\UniqueConstraint(name="invoice_id", columns={"invoice_id", "invoice_tax_id"}),@ORM\UniqueConstraint(name="invoice_type", columns={"issuer_id", "invoice_type", "invoice_id"})}, indexes={@ORM\Index(name="invoice_tax_id", columns={"invoice_tax_id"})}) |
11
|
|
|
* @ORM\Entity |
12
|
|
|
* @ORM\EntityListeners({ControleOnline\Listener\LogListener::class}) |
13
|
|
|
*/ |
14
|
|
|
class ServiceInvoiceTax |
15
|
|
|
{ |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @var integer |
19
|
|
|
* |
20
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false) |
21
|
|
|
* @ORM\Id |
22
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
23
|
|
|
*/ |
24
|
|
|
private $id; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var \ControleOnline\Entity\PurchasingInvoiceTax |
|
|
|
|
28
|
|
|
* |
29
|
|
|
* @ORM\ManyToOne(targetEntity="ControleOnline\Entity\PurchasingInvoiceTax", inversedBy="service_invoice_tax") |
30
|
|
|
* @ORM\JoinColumns({ |
31
|
|
|
* @ORM\JoinColumn(name="invoice_tax_id", referencedColumnName="id") |
32
|
|
|
* }) |
33
|
|
|
*/ |
34
|
|
|
private $service_invoice_tax; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var \ControleOnline\Entity\Invoice |
38
|
|
|
* |
39
|
|
|
* @ORM\ManyToOne(targetEntity="ControleOnline\Entity\Invoice", inversedBy="service_invoice_tax") |
40
|
|
|
* @ORM\JoinColumns({ |
41
|
|
|
* @ORM\JoinColumn(name="invoice_id", referencedColumnName="id") |
42
|
|
|
* }) |
43
|
|
|
*/ |
44
|
|
|
private $invoice; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var \ControleOnline\Entity\People |
|
|
|
|
48
|
|
|
* |
49
|
|
|
* @ORM\ManyToOne(targetEntity="ControleOnline\Entity\People") |
50
|
|
|
* @ORM\JoinColumns({ |
51
|
|
|
* @ORM\JoinColumn(name="issuer_id", referencedColumnName="id") |
52
|
|
|
* }) |
53
|
|
|
*/ |
54
|
|
|
private $issuer; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var string |
58
|
|
|
* |
59
|
|
|
* @ORM\Column(name="invoice_type", type="integer", nullable=false) |
60
|
|
|
*/ |
61
|
|
|
private $invoiceType; |
62
|
|
|
|
63
|
|
|
public function __construct() |
64
|
|
|
{ |
65
|
|
|
$this->invoice = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
|
|
66
|
|
|
$this->service_invoice_tax = new \Doctrine\Common\Collections\ArrayCollection(); |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* Get id |
71
|
|
|
* |
72
|
|
|
* @return integer |
73
|
|
|
*/ |
74
|
|
|
public function getId() |
75
|
|
|
{ |
76
|
|
|
return $this->id; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* Set service_invoice_tax |
81
|
|
|
* |
82
|
|
|
* @param \ControleOnline\Entity\PurchasingInvoiceTax $service_invoice_tax |
83
|
|
|
* @return InvoiceTax |
84
|
|
|
*/ |
85
|
|
|
public function setServiceInvoiceTax(\ControleOnline\Entity\PurchasingInvoiceTax $service_invoice_tax = null) |
86
|
|
|
{ |
87
|
|
|
$this->service_invoice_tax = $service_invoice_tax; |
88
|
|
|
|
89
|
|
|
return $this; |
|
|
|
|
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* Get service_invoice_tax |
94
|
|
|
* |
95
|
|
|
* @return \ControleOnline\Entity\PurchasingInvoiceTax |
96
|
|
|
*/ |
97
|
|
|
public function getServiceInvoiceTax() |
98
|
|
|
{ |
99
|
|
|
return $this->service_invoice_tax; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* Set invoice |
104
|
|
|
* |
105
|
|
|
* @param \ControleOnline\Entity\Invoice $invoice |
106
|
|
|
* @return Invoice |
107
|
|
|
*/ |
108
|
|
|
public function setInvoice(\ControleOnline\Entity\Invoice $invoice = null) |
109
|
|
|
{ |
110
|
|
|
$this->invoice = $invoice; |
111
|
|
|
|
112
|
|
|
return $this; |
|
|
|
|
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* Get invoice |
117
|
|
|
* |
118
|
|
|
* @return \ControleOnline\Entity\Invoice |
119
|
|
|
*/ |
120
|
|
|
public function getInvoice() |
121
|
|
|
{ |
122
|
|
|
return $this->invoice; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Set invoice_type |
127
|
|
|
* |
128
|
|
|
* @param integer $invoice_type |
129
|
|
|
* @return Invoice |
130
|
|
|
*/ |
131
|
|
|
public function setInvoiceType($invoice_type) |
132
|
|
|
{ |
133
|
|
|
$this->invoiceType = $invoice_type; |
134
|
|
|
|
135
|
|
|
return $this; |
|
|
|
|
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* Get invoice_type |
140
|
|
|
* |
141
|
|
|
* @return integer |
142
|
|
|
*/ |
143
|
|
|
public function getInvoiceType() |
144
|
|
|
{ |
145
|
|
|
return $this->invoiceType; |
|
|
|
|
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* Set issuer |
150
|
|
|
* |
151
|
|
|
* @param \ControleOnline\Entity\People $issuer |
152
|
|
|
* @return People |
153
|
|
|
*/ |
154
|
|
|
public function setIssuer(\ControleOnline\Entity\People $issuer = null) |
155
|
|
|
{ |
156
|
|
|
$this->issuer = $issuer; |
157
|
|
|
|
158
|
|
|
return $this; |
|
|
|
|
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* Get issuer |
163
|
|
|
* |
164
|
|
|
* @return \ControleOnline\Entity\People |
165
|
|
|
*/ |
166
|
|
|
public function getIssuer() |
167
|
|
|
{ |
168
|
|
|
return $this->issuer; |
169
|
|
|
} |
170
|
|
|
} |
171
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths