1 | <?php |
||
2 | |||
3 | namespace ControleOnline\Entity; |
||
4 | |||
5 | use Symfony\Component\Serializer\Attribute\Groups; |
||
0 ignored issues
–
show
|
|||
6 | use ControleOnline\Repository\PackageModulesRepository; |
||
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
8 | |||
9 | 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 ![]() |
|||
10 | 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 ![]() |
|||
11 | 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 ![]() |
|||
12 | use ApiPlatform\Metadata\ApiProperty; |
||
0 ignored issues
–
show
The type
ApiPlatform\Metadata\ApiProperty 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 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 ![]() |
|||
14 | 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 ![]() |
|||
15 | 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 ![]() |
|||
16 | 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 ![]() |
|||
17 | #[ApiResource(operations: [new Get(security: 'is_granted(\'ROLE_CLIENT\')'), new GetCollection(security: 'is_granted(\'ROLE_CLIENT\')')], formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']], normalizationContext: ['groups' => ['package_modules:read']], denormalizationContext: ['groups' => ['package_modules:write']])] |
||
18 | #[ORM\Table(name: 'package_modules')] |
||
19 | #[ORM\Index(name: 'module_id', columns: ['module_id'])] |
||
20 | #[ORM\Index(name: 'IDX_A1EC265BF44CABFF', columns: ['package_id'])] |
||
21 | #[ORM\UniqueConstraint(name: 'package_id', columns: ['package_id', 'module_id'])] |
||
22 | #[ORM\EntityListeners([LogListener::class])] |
||
23 | #[ORM\Entity(repositoryClass: PackageModulesRepository::class)] |
||
24 | class PackageModules |
||
25 | { |
||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | #[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
||
30 | #[ORM\Id] |
||
31 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
32 | private $id; |
||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | #[ORM\Column(name: 'users', type: 'integer', nullable: false)] |
||
37 | private $users; |
||
38 | /** |
||
39 | * @var Module |
||
0 ignored issues
–
show
The type
ControleOnline\Entity\Module 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 ![]() |
|||
40 | */ |
||
41 | #[ORM\JoinColumn(name: 'module_id', referencedColumnName: 'id')] |
||
42 | #[ORM\ManyToOne(targetEntity: Module::class)] |
||
43 | private $module; |
||
44 | /** |
||
45 | * @var Package |
||
46 | */ |
||
47 | #[ORM\JoinColumn(name: 'package_id', referencedColumnName: 'id')] |
||
48 | #[ORM\ManyToOne(targetEntity: Package::class)] |
||
49 | private $package; |
||
50 | /** |
||
51 | * Get the value of id |
||
52 | */ |
||
53 | public function getId() |
||
54 | { |
||
55 | return $this->id; |
||
56 | } |
||
57 | /** |
||
58 | * Get the value of users |
||
59 | */ |
||
60 | public function getUsers() |
||
61 | { |
||
62 | return $this->users; |
||
63 | } |
||
64 | /** |
||
65 | * Set the value of users |
||
66 | */ |
||
67 | public function setUsers($users) : self |
||
68 | { |
||
69 | $this->users = $users; |
||
70 | return $this; |
||
71 | } |
||
72 | /** |
||
73 | * Get the value of module |
||
74 | */ |
||
75 | public function getModule() : Module |
||
76 | { |
||
77 | return $this->module; |
||
78 | } |
||
79 | /** |
||
80 | * Set the value of module |
||
81 | */ |
||
82 | public function setModule(Module $module) : self |
||
83 | { |
||
84 | $this->module = $module; |
||
85 | return $this; |
||
86 | } |
||
87 | /** |
||
88 | * Get the value of package |
||
89 | */ |
||
90 | public function getPackage() : Package |
||
91 | { |
||
92 | return $this->package; |
||
93 | } |
||
94 | /** |
||
95 | * Set the value of package |
||
96 | */ |
||
97 | public function setPackage(Package $package) : self |
||
98 | { |
||
99 | $this->package = $package; |
||
100 | return $this; |
||
101 | } |
||
102 | } |
||
103 |
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