ControleOnline /
api-platform-queue
| 1 | <?php |
||
| 2 | |||
| 3 | namespace ControleOnline\Entity; |
||
| 4 | |||
| 5 | use Symfony\Component\Serializer\Attribute\Groups; |
||
|
0 ignored issues
–
show
|
|||
| 6 | |||
| 7 | use ApiPlatform\Doctrine\Orm\Filter\SearchFilter; |
||
|
0 ignored issues
–
show
The type
ApiPlatform\Doctrine\Orm\Filter\SearchFilter 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\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 Loading history...
|
|||
| 9 | 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...
|
|||
| 10 | use ApiPlatform\Metadata\Delete; |
||
|
0 ignored issues
–
show
The type
ApiPlatform\Metadata\Delete 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 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...
|
|||
| 12 | use ApiPlatform\Metadata\GetCollection; |
||
|
0 ignored issues
–
show
The type
ApiPlatform\Metadata\GetCollection 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...
|
|||
| 13 | use ApiPlatform\Metadata\Put; |
||
|
0 ignored issues
–
show
The type
ApiPlatform\Metadata\Put 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...
|
|||
| 14 | 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...
|
|||
| 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 Loading history...
|
|||
| 16 | |||
| 17 | #[ApiResource( |
||
| 18 | operations: [ |
||
| 19 | new Get(security: 'is_granted(\'ROLE_CLIENT\')'), |
||
| 20 | new GetCollection(security: 'is_granted(\'ROLE_CLIENT\')'), |
||
| 21 | new Put(security: 'is_granted(\'ROLE_CLIENT\')'), |
||
| 22 | new Delete(security: 'is_granted(\'ROLE_CLIENT\')') |
||
| 23 | ], |
||
| 24 | formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']], |
||
| 25 | normalizationContext: ['groups' => ['display_queue:read']], |
||
| 26 | denormalizationContext: ['groups' => ['display_queue:write']] |
||
| 27 | )] |
||
| 28 | #[ApiFilter(filterClass: SearchFilter::class, properties: ['display' => 'exact', 'queue' => 'exact'])] |
||
| 29 | #[ORM\Table(name: 'display_queue')] |
||
| 30 | #[ORM\Index(name: 'queue_id', columns: ['queue_id'])] |
||
| 31 | #[ORM\Index(name: 'IDX_7EAD648851A2DF33', columns: ['display_id'])] |
||
| 32 | #[ORM\UniqueConstraint(name: 'display_id', columns: ['display_id', 'queue_id'])] |
||
| 33 | #[ORM\EntityListeners([LogListener::class])] |
||
| 34 | #[ORM\Entity] |
||
| 35 | class DisplayQueue |
||
| 36 | { |
||
| 37 | #[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
||
| 38 | #[ORM\Id] |
||
| 39 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
| 40 | #[Groups(['order:read', 'order_details:read', 'order:write', 'display_queue:read', 'display_queue:write'])] |
||
| 41 | private int $id = 0; |
||
| 42 | |||
| 43 | #[ORM\JoinColumn(name: 'display_id', referencedColumnName: 'id')] |
||
| 44 | #[ORM\ManyToOne(targetEntity: Display::class)] |
||
| 45 | #[Groups(['order:read', 'order_details:read', 'order:write', 'display_queue:read', 'display_queue:write'])] |
||
| 46 | private Display $display; |
||
| 47 | |||
| 48 | #[ORM\JoinColumn(name: 'queue_id', referencedColumnName: 'id')] |
||
| 49 | #[ORM\ManyToOne(targetEntity: Queue::class)] |
||
| 50 | #[Groups(['order:read', 'order_details:read', 'order:write', 'display_queue:read', 'display_queue:write'])] |
||
| 51 | private Queue $queue; |
||
| 52 | |||
| 53 | public function getId(): int |
||
| 54 | { |
||
| 55 | return $this->id; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getDisplay(): Display |
||
| 59 | { |
||
| 60 | return $this->display; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function setDisplay(Display $display): self |
||
| 64 | { |
||
| 65 | $this->display = $display; |
||
| 66 | return $this; |
||
| 67 | } |
||
| 68 | |||
| 69 | public function getQueue(): Queue |
||
| 70 | { |
||
| 71 | return $this->queue; |
||
| 72 | } |
||
| 73 | |||
| 74 | public function setQueue(Queue $queue): self |
||
| 75 | { |
||
| 76 | $this->queue = $queue; |
||
| 77 | return $this; |
||
| 78 | } |
||
| 79 | } |
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