Issues (279)

api/src/Entity/Registration.php (39 issues)

1
<?php
2
3
namespace App\Entity;
4
5
use App\Entity\Attribute\Accessor as EntityAccessor;
6
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
16
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
20
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
21
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
23
/**
24
 * @ApiResource(
25
 *     attributes={
26
 *         "normalization_context"={
27
 *             "groups"={"registration_output"}
28
 *         },
29
 *         "denormalization_context"={
30
 *             "groups"={"registration_input"}
31
 *         },
32
 *         "filters"={
33
 *             "app.registration.search",
34
 *             "app.registration.date",
35
 *             "app.registration.order"
36
 *         }
37
 *     }
38
 * )
39
 * @ORM\Entity(repositoryClass="App\Repository\RegistrationRepository")
40
 * @ORM\Table(
41
 *     name="app_registration",
42
 *     uniqueConstraints={
43
 *        @ORM\UniqueConstraint(columns={"username", "tenant"})
44
 *     }
45
 * )
46
 * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
47
 * @ORMAssert\UniqueEntity(fields="uuid")
48
 * @ORMAssert\UniqueEntity(fields={"username", "tenant"})
49
 */
50
class Registration implements Identifiable, Uuidentifiable, Ownable, Deletable, Versionable, Tenantable
51
{
52
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
53
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
54
55
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
56
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
57
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
58
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
59
    use Accessor\Username;
0 ignored issues
show
The type Ds\Component\Model\Attribute\Accessor\Username 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
60
    use Accessor\Password;
0 ignored issues
show
The type Ds\Component\Model\Attribute\Accessor\Password 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
61
    use Accessor\Identity;
0 ignored issues
show
The type Ds\Component\Model\Attribute\Accessor\Identity 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
62
    use Accessor\Data;
0 ignored issues
show
The type Ds\Component\Model\Attribute\Accessor\Data 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
63
    use EntityAccessor\User;
64
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
65
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
66
    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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
67
68
    /**
69
     * @var integer
70
     * @ApiProperty(identifier=false, writable=false)
71
     * @Serializer\Groups({"registration_output"})
72
     * @ORM\Id
73
     * @ORM\GeneratedValue(strategy="AUTO")
74
     * @ORM\Column(name="id", type="integer")
75
     */
76
    private $id;
0 ignored issues
show
The private property $id is not used, and could be removed.
Loading history...
77
78
    /**
79
     * @var string
80
     * @ApiProperty(identifier=true, writable=false)
81
     * @Serializer\Groups({"registration_output"})
82
     * @ORM\Column(name="uuid", type="guid", unique=true)
83
     * @Assert\Uuid
84
     */
85
    private $uuid;
0 ignored issues
show
The private property $uuid is not used, and could be removed.
Loading history...
86
87
    /**
88
     * @var \DateTime
89
     * @ApiProperty(writable=false)
90
     * @Serializer\Groups({"registration_output"})
91
     */
92
    protected $createdAt;
93
94
    /**
95
     * @var \DateTime
96
     * @ApiProperty(writable=false)
97
     * @Serializer\Groups({"registration_output"})
98
     */
99
    protected $updatedAt;
100
101
    /**
102
     * @var \DateTime
103
     * @ApiProperty(writable=false)
104
     * @Serializer\Groups({"registration_output"})
105
     */
106
    protected $deletedAt;
107
108
    /**
109
     * @var string
110
     * @ApiProperty
111
     * @Serializer\Groups({"registration_output", "registration_input"})
112
     * @ORM\Column(name="`owner`", type="string", length=255, nullable=true)
113
     * @Assert\Length(min=1, max=255)
114
     */
115
    private $owner;
0 ignored issues
show
The private property $owner is not used, and could be removed.
Loading history...
116
117
    /**
118
     * @var string
119
     * @ApiProperty
120
     * @Serializer\Groups({"registration_output", "registration_input"})
121
     * @ORM\Column(name="owner_uuid", type="guid", nullable=true)
122
     * @Assert\Uuid
123
     */
124
    private $ownerUuid;
0 ignored issues
show
The private property $ownerUuid is not used, and could be removed.
Loading history...
125
126
    /**
127
     * @var string
128
     * @ApiProperty
129
     * @Serializer\Groups({"registration_output", "registration_input"})
130
     * @ORM\Column(name="username", type="string", length=255)
131
     * @Assert\NotBlank
132
     * @Assert\Length(min=1, max=255)
133
     */
134
    private $username;
0 ignored issues
show
The private property $username is not used, and could be removed.
Loading history...
135
136
    /**
137
     * @var string
138
     * @ApiProperty(readable=false)
139
     * @Serializer\Groups({"registration_input"})
140
     */
141
    private $password;
0 ignored issues
show
The private property $password is not used, and could be removed.
Loading history...
142
143
    /**
144
     * @var string
145
     * @ApiProperty
146
     * @Serializer\Groups({"registration_output", "registration_input"})
147
     * @ORM\Column(name="identity", type="string", length=255, nullable=true)
148
     * @Assert\NotBlank
149
     * @Assert\Length(min=1, max=255)
150
     */
151
    private $identity;
0 ignored issues
show
The private property $identity is not used, and could be removed.
Loading history...
152
153
    /**
154
     * @var array
155
     * @ApiProperty
156
     * @Serializer\Groups({"registration_output", "registration_input"})
157
     * @ORM\Column(name="data", type="json_array")
158
     * @Assert\Type("array")
159
     */
160
    private $data;
0 ignored issues
show
The private property $data is not used, and could be removed.
Loading history...
161
162
    /**
163
     * @var \App\Entity\User
164
     * @ApiProperty(writable=false)
165
     * @Serializer\Groups({"registration_output"})
166
     * @ORM\OneToOne(targetEntity="User", inversedBy="registration")
167
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
168
     * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
169
     */
170
    private $user;
0 ignored issues
show
The private property $user is not used, and could be removed.
Loading history...
171
172
    /**
173
     * @var integer
174
     * @ApiProperty
175
     * @Serializer\Groups({"registration_output", "registration_input"})
176
     * @ORM\Column(name="version", type="integer")
177
     * @ORM\Version
178
     * @Assert\NotBlank
179
     * @Assert\Type("integer")
180
     */
181
    private $version;
0 ignored issues
show
The private property $version is not used, and could be removed.
Loading history...
182
183
    /**
184
     * @var string
185
     * @ApiProperty(writable=false)
186
     * @Serializer\Groups({"registration_output"})
187
     * @ORM\Column(name="tenant", type="guid")
188
     * @Assert\Uuid
189
     */
190
    private $tenant;
0 ignored issues
show
The private property $tenant is not used, and could be removed.
Loading history...
191
}
192