Issues (68)

src/Entity/ServiceInvoiceTax.php (10 issues)

1
<?php
2
3
namespace ControleOnline\Entity;
4
5
use Symfony\Component\Serializer\Attribute\Groups; 
0 ignored issues
show
The type Symfony\Component\Serializer\Attribute\Groups 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
use Doctrine\Common\Collections\ArrayCollection;
0 ignored issues
show
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...
7
use ControleOnline\Listener\LogListener;
0 ignored issues
show
The type ControleOnline\Listener\LogListener 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...
8
9
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
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...
10
11
/**
12
 * ServiceInvoiceTax
13
 */
14
#[ORM\Table(name: 'service_invoice_tax')]
15
#[ORM\Index(name: 'invoice_tax_id', columns: ['invoice_tax_id'])]
16
#[ORM\UniqueConstraint(name: 'invoice_id', columns: ['invoice_id', 'invoice_tax_id'])]
17
#[ORM\UniqueConstraint(name: 'invoice_type', columns: ['issuer_id', 'invoice_type', 'invoice_id'])]
18
#[ORM\Entity]
19
#[ORM\EntityListeners([LogListener::class])]
20
class ServiceInvoiceTax
21
{
22
23
    /**
24
     * @var integer
25
     */
26
    #[ORM\Column(name: 'id', type: 'integer', nullable: false)]
27
    #[ORM\Id]
28
    #[ORM\GeneratedValue(strategy: 'IDENTITY')]
29
    private $id;
30
31
    /**
32
     * @var InvoiceTax
33
     */
34
    #[ORM\JoinColumn(name: 'invoice_tax_id', referencedColumnName: 'id')]
35
    #[ORM\ManyToOne(targetEntity: InvoiceTax::class, inversedBy: 'service_invoice_tax')]
36
    private $service_invoice_tax;
37
38
    /**
39
     * @var Invoice
40
     */
41
    #[ORM\JoinColumn(name: 'invoice_id', referencedColumnName: 'id')]
42
    #[ORM\ManyToOne(targetEntity: Invoice::class, inversedBy: 'service_invoice_tax')]
43
    private $invoice;
44
45
    /**
46
     * @var People
0 ignored issues
show
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...
47
     */
48
    #[ORM\JoinColumn(name: 'issuer_id', referencedColumnName: 'id')]
49
    #[ORM\ManyToOne(targetEntity: People::class)]
50
    private $issuer;
51
52
    /**
53
     * @var string
54
     */
55
    #[ORM\Column(name: 'invoice_type', type: 'integer', nullable: false)]
56
    private $invoiceType;
57
58
    public function __construct()
59
    {
60
        $this->invoice             = new ArrayCollection();
61
        $this->service_invoice_tax = new ArrayCollection();
62
    }
63
64
    /**
65
     * Get id
66
     *
67
     * @return integer
68
     */
69
    public function getId()
70
    {
71
        return $this->id;
72
    }
73
74
    /**
75
     * Set service_invoice_tax
76
     *
77
     * @param InvoiceTax $service_invoice_tax
78
     * @return InvoiceTax
79
     */
80
    public function setServiceInvoiceTax(InvoiceTax $service_invoice_tax = null)
81
    {
82
        $this->service_invoice_tax = $service_invoice_tax;
83
84
        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...
85
    }
86
87
    /**
88
     * Get service_invoice_tax
89
     *
90
     * @return InvoiceTax
91
     */
92
    public function getServiceInvoiceTax()
93
    {
94
        return $this->service_invoice_tax;
95
    }
96
97
    /**
98
     * Set invoice
99
     *
100
     * @param Invoice $invoice
101
     * @return Invoice
102
     */
103
    public function setInvoice(Invoice $invoice = null)
104
    {
105
        $this->invoice = $invoice;
106
107
        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...
108
    }
109
110
    /**
111
     * Get invoice
112
     *
113
     * @return Invoice
114
     */
115
    public function getInvoice()
116
    {
117
        return $this->invoice;
118
    }
119
120
    /**
121
     * Set invoice_type
122
     *
123
     * @param integer $invoice_type
124
     * @return Invoice
125
     */
126
    public function setInvoiceType($invoice_type)
127
    {
128
        $this->invoiceType = $invoice_type;
129
130
        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...
131
    }
132
133
    /**
134
     * Get invoice_type
135
     *
136
     * @return integer
137
     */
138
    public function getInvoiceType()
139
    {
140
        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...
141
    }
142
143
    /**
144
     * Set issuer
145
     *
146
     * @param People $issuer
147
     * @return People
148
     */
149
    public function setIssuer(People $issuer = null)
150
    {
151
        $this->issuer = $issuer;
152
153
        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...
154
    }
155
156
    /**
157
     * Get issuer
158
     *
159
     * @return People
160
     */
161
    public function getIssuer()
162
    {
163
        return $this->issuer;
164
    }
165
}
166