1 | <?php |
||
2 | |||
3 | namespace App\Entity; |
||
4 | |||
5 | use Ds\Component\Locale\Model\Type\Localizable; |
||
0 ignored issues
–
show
|
|||
6 | use Ds\Component\Model\Attribute\Accessor; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor 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 ![]() |
|||
7 | use Ds\Component\Model\Type\Deletable; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Type\Deletable 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 Ds\Component\Model\Type\Identifiable; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Type\Identifiable 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 Ds\Component\Model\Type\Ownable; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Type\Ownable 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 Ds\Component\Model\Type\Uuidentifiable; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Type\Uuidentifiable 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 Ds\Component\Model\Type\Versionable; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Type\Versionable 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 Ds\Component\Tenant\Model\Attribute\Accessor as TenantAccessor; |
||
0 ignored issues
–
show
The type
Ds\Component\Tenant\Model\Attribute\Accessor 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 Ds\Component\Tenant\Model\Type\Tenantable; |
||
0 ignored issues
–
show
The type
Ds\Component\Tenant\Model\Type\Tenantable 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 Ds\Component\Translation\Model\Attribute\Accessor as TranslationAccessor; |
||
0 ignored issues
–
show
The type
Ds\Component\Translation\Model\Attribute\Accessor 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 Ds\Component\Translation\Model\Type\Translatable; |
||
0 ignored issues
–
show
The type
Ds\Component\Translation\Model\Type\Translatable 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 Knp\DoctrineBehaviors\Model as Behavior; |
||
0 ignored issues
–
show
The type
Knp\DoctrineBehaviors\Model 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 | |||
18 | use ApiPlatform\Core\Annotation\ApiResource; |
||
0 ignored issues
–
show
The type
ApiPlatform\Core\Annotation\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 ![]() |
|||
19 | use ApiPlatform\Core\Annotation\ApiProperty; |
||
0 ignored issues
–
show
The type
ApiPlatform\Core\Annotation\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 ![]() |
|||
20 | 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 ![]() |
|||
21 | use Ds\Component\Locale\Model\Annotation\Locale; |
||
0 ignored issues
–
show
The type
Ds\Component\Locale\Model\Annotation\Locale 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 ![]() |
|||
22 | use Ds\Component\Translation\Model\Annotation\Translate; |
||
0 ignored issues
–
show
The type
Ds\Component\Translation...el\Annotation\Translate 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 ![]() |
|||
23 | use Symfony\Bridge\Doctrine\Validator\Constraints as ORMAssert; |
||
0 ignored issues
–
show
The type
Symfony\Bridge\Doctrine\Validator\Constraints 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 ![]() |
|||
24 | use Symfony\Component\Serializer\Annotation as Serializer; |
||
0 ignored issues
–
show
The type
Symfony\Component\Serializer\Annotation 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 ![]() |
|||
25 | use Symfony\Component\Validator\Constraints as Assert; |
||
0 ignored issues
–
show
The type
Symfony\Component\Validator\Constraints 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 ![]() |
|||
26 | |||
27 | /** |
||
28 | * Class File |
||
29 | * |
||
30 | * @ApiResource( |
||
31 | * attributes={ |
||
32 | * "normalization_context"={ |
||
33 | * "groups"={"file_output"} |
||
34 | * }, |
||
35 | * "denormalization_context"={ |
||
36 | * "groups"={"file_input"} |
||
37 | * }, |
||
38 | * "filters"={ |
||
39 | * "app.file.search", |
||
40 | * "app.file.search_translation", |
||
41 | * "app.file.date", |
||
42 | * "app.file.order" |
||
43 | * } |
||
44 | * } |
||
45 | * ) |
||
46 | * @ORM\Entity(repositoryClass="App\Repository\FileRepository") |
||
47 | * @ORM\Table( |
||
48 | * name="app_file", |
||
49 | * uniqueConstraints={ |
||
50 | * @ORM\UniqueConstraint(columns={"slug", "tenant"}) |
||
51 | * } |
||
52 | * ) |
||
53 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
54 | * @ORMAssert\UniqueEntity(fields="uuid") |
||
55 | * @ORMAssert\UniqueEntity(fields={"slug", "tenant"}) |
||
56 | */ |
||
57 | class File implements Identifiable, Uuidentifiable, Ownable, Translatable, Localizable, Deletable, Versionable, Tenantable |
||
58 | { |
||
59 | use Behavior\Translatable\Translatable; |
||
0 ignored issues
–
show
The type
Knp\DoctrineBehaviors\Mo...anslatable\Translatable 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 ![]() |
|||
60 | use Behavior\Timestampable\Timestampable; |
||
0 ignored issues
–
show
The type
Knp\DoctrineBehaviors\Mo...stampable\Timestampable 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 ![]() |
|||
61 | use Behavior\SoftDeletable\SoftDeletable; |
||
0 ignored issues
–
show
The type
Knp\DoctrineBehaviors\Mo...Deletable\SoftDeletable 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 ![]() |
|||
62 | |||
63 | use Accessor\Id; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Id 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 ![]() |
|||
64 | use Accessor\Uuid; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Uuid 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 ![]() |
|||
65 | use Accessor\Owner; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Owner 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 ![]() |
|||
66 | use Accessor\OwnerUuid; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\OwnerUuid 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 ![]() |
|||
67 | use Accessor\Slug; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Slug 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 ![]() |
|||
68 | use TranslationAccessor\Title; |
||
0 ignored issues
–
show
The type
Ds\Component\Translation...ttribute\Accessor\Title 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 ![]() |
|||
69 | use TranslationAccessor\Description; |
||
0 ignored issues
–
show
The type
Ds\Component\Translation...te\Accessor\Description 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 ![]() |
|||
70 | use TranslationAccessor\Presentation; |
||
0 ignored issues
–
show
The type
Ds\Component\Translation...e\Accessor\Presentation 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 ![]() |
|||
71 | use Accessor\Type; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Type 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 ![]() |
|||
72 | use Accessor\Deleted; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Deleted 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 ![]() |
|||
73 | use Accessor\Version; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Version 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 ![]() |
|||
74 | use TenantAccessor\Tenant; |
||
0 ignored issues
–
show
The type
Ds\Component\Tenant\Mode...tribute\Accessor\Tenant 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 ![]() |
|||
75 | |||
76 | /** |
||
77 | * @var integer |
||
78 | * @ApiProperty(identifier=false, writable=false) |
||
79 | * @Serializer\Groups({"file_output"}) |
||
80 | * @ORM\Id |
||
81 | * @ORM\GeneratedValue(strategy="AUTO") |
||
82 | * @ORM\Column(name="id", type="integer") |
||
83 | */ |
||
84 | private $id; |
||
0 ignored issues
–
show
|
|||
85 | |||
86 | /** |
||
87 | * @var string |
||
88 | * @ApiProperty(identifier=true, writable=false) |
||
89 | * @Serializer\Groups({"file_output"}) |
||
90 | * @ORM\Column(name="uuid", type="guid", unique=true) |
||
91 | * @Assert\Uuid |
||
92 | */ |
||
93 | private $uuid; |
||
0 ignored issues
–
show
|
|||
94 | |||
95 | /** |
||
96 | * @var \DateTime |
||
97 | * @ApiProperty(writable=false) |
||
98 | * @Serializer\Groups({"file_output"}) |
||
99 | */ |
||
100 | protected $createdAt; |
||
101 | |||
102 | /** |
||
103 | * @var \DateTime |
||
104 | * @ApiProperty(writable=false) |
||
105 | * @Serializer\Groups({"file_output"}) |
||
106 | */ |
||
107 | protected $updatedAt; |
||
108 | |||
109 | /** |
||
110 | * @var \DateTime |
||
111 | * @ApiProperty(writable=false) |
||
112 | * @Serializer\Groups({"file_output"}) |
||
113 | */ |
||
114 | protected $deletedAt; |
||
115 | |||
116 | /** |
||
117 | * @var string |
||
118 | * @ApiProperty |
||
119 | * @Serializer\Groups({"file_output", "file_input"}) |
||
120 | * @ORM\Column(name="`owner`", type="string", length=255, nullable=true) |
||
121 | * @Assert\NotBlank |
||
122 | * @Assert\Length(min=1, max=255) |
||
123 | */ |
||
124 | private $owner; |
||
0 ignored issues
–
show
|
|||
125 | |||
126 | /** |
||
127 | * @var string |
||
128 | * @ApiProperty |
||
129 | * @Serializer\Groups({"file_output", "file_input"}) |
||
130 | * @ORM\Column(name="owner_uuid", type="guid", nullable=true) |
||
131 | * @Assert\NotBlank |
||
132 | * @Assert\Uuid |
||
133 | */ |
||
134 | private $ownerUuid; |
||
0 ignored issues
–
show
|
|||
135 | |||
136 | /** |
||
137 | * @var string |
||
138 | * @ApiProperty |
||
139 | * @Serializer\Groups({"file_output", "file_input"}) |
||
140 | * @ORM\Column(name="slug", type="string") |
||
141 | * @Assert\NotBlank |
||
142 | * @Assert\Length(min=1, max=255) |
||
143 | */ |
||
144 | private $slug; |
||
0 ignored issues
–
show
|
|||
145 | |||
146 | /** |
||
147 | * @var array |
||
148 | * @ApiProperty |
||
149 | * @Serializer\Groups({"file_output", "file_input"}) |
||
150 | * @Assert\Type("array") |
||
151 | * @Assert\NotBlank |
||
152 | * @Assert\All({ |
||
153 | * @Assert\NotBlank, |
||
154 | * @Assert\Length(min=1) |
||
155 | * }) |
||
156 | * @Locale |
||
157 | * @Translate |
||
158 | */ |
||
159 | private $title; |
||
160 | |||
161 | /** |
||
162 | * @var array |
||
163 | * @ApiProperty |
||
164 | * @Serializer\Groups({"file_output", "file_input"}) |
||
165 | * @Assert\Type("array") |
||
166 | * @Assert\NotBlank |
||
167 | * @Assert\All({ |
||
168 | * @Assert\NotBlank, |
||
169 | * @Assert\Length(min=1) |
||
170 | * }) |
||
171 | * @Locale |
||
172 | * @Translate |
||
173 | */ |
||
174 | private $description; |
||
175 | |||
176 | /** |
||
177 | * @var array |
||
178 | * @ApiProperty |
||
179 | * @Serializer\Groups({"file_output", "file_input"}) |
||
180 | * @Assert\Type("array") |
||
181 | * @Assert\NotBlank |
||
182 | * @Assert\All({ |
||
183 | * @Assert\NotBlank, |
||
184 | * @Assert\Length(min=1) |
||
185 | * }) |
||
186 | * @Locale |
||
187 | * @Translate |
||
188 | */ |
||
189 | private $presentation; |
||
190 | |||
191 | /** |
||
192 | * @var string |
||
193 | * @ApiProperty |
||
194 | * @Serializer\Groups({"file_output", "file_input"}) |
||
195 | * @ORM\Column(name="`type`", type="string", length=255, nullable=true) |
||
196 | * @Assert\NotBlank |
||
197 | * @Assert\Length(min=1, max=255) |
||
198 | */ |
||
199 | private $type; |
||
0 ignored issues
–
show
|
|||
200 | |||
201 | /** |
||
202 | * @var integer |
||
203 | * @ApiProperty |
||
204 | * @Serializer\Groups({"file_output", "file_input"}) |
||
205 | * @ORM\Column(name="version", type="integer") |
||
206 | * @ORM\Version |
||
207 | * @Assert\NotBlank |
||
208 | * @Assert\Type("integer") |
||
209 | */ |
||
210 | private $version; |
||
0 ignored issues
–
show
|
|||
211 | |||
212 | /** |
||
213 | * @var string |
||
214 | * @ApiProperty(writable=false) |
||
215 | * @Serializer\Groups({"file_output"}) |
||
216 | * @ORM\Column(name="tenant", type="guid") |
||
217 | * @Assert\Uuid |
||
218 | */ |
||
219 | private $tenant; |
||
0 ignored issues
–
show
|
|||
220 | |||
221 | /** |
||
222 | * Constructor |
||
223 | */ |
||
224 | public function __construct() |
||
225 | { |
||
226 | $this->title = []; |
||
227 | $this->description = []; |
||
228 | $this->presentation = []; |
||
229 | } |
||
230 | } |
||
231 |
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