ControleOnline /
api-platform-accounting
| 1 | <?php |
||
| 2 | |||
| 3 | namespace ControleOnline\Entity; |
||
| 4 | |||
| 5 | use Symfony\Component\Serializer\Attribute\Groups; |
||
|
0 ignored issues
–
show
|
|||
| 6 | |||
| 7 | 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 Loading history...
|
|||
| 8 | 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 Loading history...
|
|||
| 9 | 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 Loading history...
|
|||
| 10 | 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 Loading history...
|
|||
| 11 | 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 Loading history...
|
|||
| 12 | |||
| 13 | #[ApiResource( |
||
| 14 | operations: [new Get(security: 'is_granted(\'ROLE_CLIENT\')')], |
||
| 15 | formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']], |
||
| 16 | normalizationContext: ['groups' => ['order_invoice_tax:read']], |
||
| 17 | denormalizationContext: ['groups' => ['order_invoice_tax:write']] |
||
| 18 | )] |
||
| 19 | #[ORM\Table(name: 'order_invoice_tax')] |
||
| 20 | #[ORM\Index(name: 'invoice_tax_id', columns: ['invoice_tax_id'])] |
||
| 21 | #[ORM\UniqueConstraint(name: 'order_id', columns: ['order_id', 'invoice_tax_id'])] |
||
| 22 | #[ORM\UniqueConstraint(name: 'invoice_type', columns: ['issuer_id', 'invoice_type', 'order_id'])] |
||
| 23 | #[ORM\EntityListeners([LogListener::class])] |
||
| 24 | #[ORM\Entity] |
||
| 25 | class OrderInvoiceTax |
||
| 26 | { |
||
| 27 | #[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
||
| 28 | #[ORM\Id] |
||
| 29 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
| 30 | #[Groups(['order_invoice_tax:read'])] |
||
| 31 | private $id; |
||
| 32 | |||
| 33 | #[ORM\JoinColumn(name: 'invoice_tax_id', referencedColumnName: 'id')] |
||
| 34 | #[ORM\ManyToOne(targetEntity: InvoiceTax::class, inversedBy: 'order')] |
||
| 35 | #[Groups(['order_invoice_tax:read', 'order:read'])] |
||
| 36 | private $invoiceTax; |
||
| 37 | |||
| 38 | #[ORM\JoinColumn(name: 'order_id', referencedColumnName: 'id')] |
||
| 39 | #[ORM\ManyToOne(targetEntity: Order::class, inversedBy: 'invoiceTax')] |
||
| 40 | private $order; |
||
| 41 | |||
| 42 | #[ORM\JoinColumn(name: 'issuer_id', referencedColumnName: 'id')] |
||
| 43 | #[ORM\ManyToOne(targetEntity: People::class)] |
||
| 44 | private $issuer; |
||
| 45 | |||
| 46 | #[ORM\Column(name: 'invoice_type', type: 'integer', nullable: false)] |
||
| 47 | #[Groups(['order_invoice_tax:read', 'order_detail_status:read'])] |
||
| 48 | private $invoiceType; |
||
| 49 | |||
| 50 | public function __construct() |
||
| 51 | { |
||
| 52 | $this->order = new ArrayCollection(); |
||
| 53 | $this->invoiceTax = new ArrayCollection(); |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getId() |
||
| 57 | { |
||
| 58 | return $this->id; |
||
| 59 | } |
||
| 60 | |||
| 61 | public function setInvoiceTax(InvoiceTax $invoice_tax = null) |
||
| 62 | { |
||
| 63 | $this->invoiceTax = $invoice_tax; |
||
| 64 | return $this; |
||
| 65 | } |
||
| 66 | |||
| 67 | public function getInvoiceTax() |
||
| 68 | { |
||
| 69 | return $this->invoiceTax; |
||
| 70 | } |
||
| 71 | |||
| 72 | public function setOrder(Order $order = null) |
||
| 73 | { |
||
| 74 | $this->order = $order; |
||
| 75 | return $this; |
||
| 76 | } |
||
| 77 | |||
| 78 | public function getOrder() |
||
| 79 | { |
||
| 80 | return $this->order; |
||
| 81 | } |
||
| 82 | |||
| 83 | public function setInvoiceType($invoice_type) |
||
| 84 | { |
||
| 85 | $this->invoiceType = $invoice_type; |
||
| 86 | return $this; |
||
| 87 | } |
||
| 88 | |||
| 89 | public function getInvoiceType() |
||
| 90 | { |
||
| 91 | return $this->invoiceType; |
||
| 92 | } |
||
| 93 | |||
| 94 | public function setIssuer(People $issuer) |
||
|
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 95 | { |
||
| 96 | $this->issuer = $issuer; |
||
| 97 | return $this; |
||
| 98 | } |
||
| 99 | |||
| 100 | public function getIssuer() |
||
| 101 | { |
||
| 102 | return $this->issuer; |
||
| 103 | } |
||
| 104 | } |
||
| 105 |
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