Passed
Push — master ( 87feaa...36ddae )
by Luiz Kim
29:25 queued 27:55
created

ServiceInvoiceTax::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace ControleOnline\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
Bug introduced by
The type Doctrine\ORM\Mapping was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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
0 ignored issues
show
Bug introduced by
The type ControleOnline\Entity\PurchasingInvoiceTax was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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
0 ignored issues
show
Bug introduced by
The type ControleOnline\Entity\People was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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();
0 ignored issues
show
Bug introduced by
The type Doctrine\Common\Collections\ArrayCollection was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type ControleOnline\Entity\ServiceInvoiceTax which is incompatible with the documented return type ControleOnline\Entity\InvoiceTax.
Loading history...
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;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type ControleOnline\Entity\ServiceInvoiceTax which is incompatible with the documented return type ControleOnline\Entity\Invoice.
Loading history...
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;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type ControleOnline\Entity\ServiceInvoiceTax which is incompatible with the documented return type ControleOnline\Entity\Invoice.
Loading history...
136
    }
137
138
    /**
139
     * Get invoice_type
140
     *
141
     * @return integer
142
     */
143
    public function getInvoiceType()
144
    {
145
        return $this->invoiceType;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->invoiceType returns the type string which is incompatible with the documented return type integer.
Loading history...
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;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type ControleOnline\Entity\ServiceInvoiceTax which is incompatible with the documented return type ControleOnline\Entity\People.
Loading history...
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