1 | <?php |
||
2 | |||
3 | namespace ControleOnline\Entity; |
||
4 | |||
5 | use Symfony\Component\Serializer\Attribute\Groups; |
||
0 ignored issues
–
show
|
|||
6 | |||
7 | use ApiPlatform\Metadata\ApiFilter; |
||
0 ignored issues
–
show
The type
ApiPlatform\Metadata\ApiFilter 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
8 | use ApiPlatform\Metadata\ApiResource; |
||
0 ignored issues
–
show
The type
ApiPlatform\Metadata\ApiResource 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
9 | use ApiPlatform\Metadata\Get; |
||
0 ignored issues
–
show
The type
ApiPlatform\Metadata\Get 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
10 | use ApiPlatform\Metadata\Post; |
||
0 ignored issues
–
show
The type
ApiPlatform\Metadata\Post 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
11 | use ControleOnline\Controller\DownloadOrderNFAction; |
||
12 | 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
13 | 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
14 | use Doctrine\Common\Collections\Collection; |
||
0 ignored issues
–
show
The type
Doctrine\Common\Collections\Collection 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
15 | 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
16 | |||
17 | #[ApiResource( |
||
18 | operations: [ |
||
19 | new Get(security: 'is_granted(\'ROLE_CLIENT\')'), |
||
20 | new Get( |
||
21 | security: 'is_granted(\'PUBLIC_ACCESS\')', |
||
22 | uriTemplate: '/invoice_taxes/{id}/download-nf', |
||
23 | requirements: ['id' => '[\\w-]+'], |
||
24 | controller: DownloadOrderNFAction::class |
||
25 | ), |
||
26 | ], |
||
27 | formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']], |
||
28 | normalizationContext: ['groups' => ['invoice_tax:read']], |
||
29 | denormalizationContext: ['groups' => ['invoice_tax:write']] |
||
30 | )] |
||
31 | #[ORM\Table(name: 'invoice_tax')] |
||
32 | #[ORM\EntityListeners([LogListener::class])] |
||
33 | #[ORM\Entity] |
||
34 | class InvoiceTax |
||
35 | { |
||
36 | #[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
||
37 | #[ORM\Id] |
||
38 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
39 | #[Groups(['invoice_tax:read'])] |
||
40 | private $id; |
||
41 | |||
42 | #[ORM\OneToMany(targetEntity: OrderInvoiceTax::class, mappedBy: 'invoiceTax')] |
||
43 | private $order; |
||
44 | |||
45 | #[ORM\Column(name: 'invoice', type: 'string', nullable: false)] |
||
46 | #[Groups(['invoice_tax:read', 'invoice_tax:write'])] |
||
47 | private $invoice; |
||
48 | |||
49 | #[ORM\OneToMany(targetEntity: ServiceInvoiceTax::class, mappedBy: 'service_invoice_tax')] |
||
50 | private $service_invoice_tax; |
||
51 | |||
52 | #[ORM\Column(name: 'invoice_key', type: 'string', nullable: true)] |
||
53 | #[Groups(['invoice_tax:read', 'order:read'])] |
||
54 | private $invoiceKey; |
||
55 | |||
56 | #[ORM\Column(name: 'invoice_number', type: 'integer', nullable: false)] |
||
57 | #[Groups(['invoice_tax:read', 'order:read'])] |
||
58 | private $invoiceNumber; |
||
59 | |||
60 | public function __construct() |
||
61 | { |
||
62 | $this->order = new ArrayCollection(); |
||
63 | $this->service_invoice_tax = new ArrayCollection(); |
||
64 | } |
||
65 | |||
66 | public function getId() |
||
67 | { |
||
68 | return $this->id; |
||
69 | } |
||
70 | |||
71 | public function addOrder(OrderInvoice $order) |
||
72 | { |
||
73 | $this->order[] = $order; |
||
74 | return $this; |
||
75 | } |
||
76 | |||
77 | public function removeOrder(OrderInvoice $order) |
||
78 | { |
||
79 | $this->order->removeElement($order); |
||
80 | } |
||
81 | |||
82 | public function getOrder() |
||
83 | { |
||
84 | return $this->order; |
||
85 | } |
||
86 | |||
87 | public function setInvoice($invoice) |
||
88 | { |
||
89 | $this->invoice = $invoice; |
||
90 | return $this; |
||
91 | } |
||
92 | |||
93 | public function getInvoice() |
||
94 | { |
||
95 | return $this->invoice; |
||
96 | } |
||
97 | |||
98 | public function setInvoiceKey($invoice_key) |
||
99 | { |
||
100 | $this->invoiceKey = $invoice_key; |
||
101 | return $this; |
||
102 | } |
||
103 | |||
104 | public function getInvoiceKey() |
||
105 | { |
||
106 | return $this->invoiceKey; |
||
107 | } |
||
108 | |||
109 | public function setInvoiceNumber($invoice_number) |
||
110 | { |
||
111 | $this->invoiceNumber = $invoice_number; |
||
112 | return $this; |
||
113 | } |
||
114 | |||
115 | public function getInvoiceNumber() |
||
116 | { |
||
117 | return $this->invoiceNumber; |
||
118 | } |
||
119 | |||
120 | public function addServiceInvoiceTax(ServiceInvoiceTax $service_invoice_tax) |
||
121 | { |
||
122 | $this->service_invoice_tax[] = $service_invoice_tax; |
||
123 | return $this; |
||
124 | } |
||
125 | |||
126 | public function removeServiceInvoiceTax(ServiceInvoiceTax $service_invoice_tax) |
||
127 | { |
||
128 | $this->service_invoice_tax->removeElement($service_invoice_tax); |
||
129 | } |
||
130 | |||
131 | public function getServiceInvoiceTax() |
||
132 | { |
||
133 | return $this->service_invoice_tax; |
||
134 | } |
||
135 | } |
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