DigitalState /
Cms
| 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 Loading history...
|
|||
| 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 Loading history...
|
|||
| 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 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. 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\Sluggable; |
||
|
0 ignored issues
–
show
The type
Ds\Component\Model\Type\Sluggable 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 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 Loading history...
|
|||
| 12 | 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 Loading history...
|
|||
| 13 | 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 Loading history...
|
|||
| 14 | 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 Loading history...
|
|||
| 15 | 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 Loading history...
|
|||
| 16 | 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 Loading history...
|
|||
| 17 | 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 Loading history...
|
|||
| 18 | |||
| 19 | 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 Loading history...
|
|||
| 20 | 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 Loading history...
|
|||
| 21 | 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...
|
|||
| 22 | 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 Loading history...
|
|||
| 23 | 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 Loading history...
|
|||
| 24 | 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 Loading history...
|
|||
| 25 | 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 Loading history...
|
|||
| 26 | 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 Loading history...
|
|||
| 27 | |||
| 28 | /** |
||
| 29 | * Class Data |
||
| 30 | * |
||
| 31 | * @ApiResource( |
||
| 32 | * attributes={ |
||
| 33 | * "normalization_context"={ |
||
| 34 | * "groups"={"data_output"} |
||
| 35 | * }, |
||
| 36 | * "denormalization_context"={ |
||
| 37 | * "groups"={"data_input"} |
||
| 38 | * }, |
||
| 39 | * "filters"={ |
||
| 40 | * "app.data.search", |
||
| 41 | * "app.data.search_translation", |
||
| 42 | * "app.data.date", |
||
| 43 | * "app.data.order" |
||
| 44 | * } |
||
| 45 | * } |
||
| 46 | * ) |
||
| 47 | * @ORM\Entity(repositoryClass="App\Repository\DataRepository") |
||
| 48 | * @ORM\Table( |
||
| 49 | * name="app_data", |
||
| 50 | * uniqueConstraints={ |
||
| 51 | * @ORM\UniqueConstraint(columns={"slug", "tenant"}) |
||
| 52 | * } |
||
| 53 | * ) |
||
| 54 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 55 | * @ORMAssert\UniqueEntity(fields="uuid") |
||
| 56 | * @ORMAssert\UniqueEntity(fields={"slug", "tenant"}) |
||
| 57 | */ |
||
| 58 | class Data implements Identifiable, Uuidentifiable, Sluggable, Ownable, Translatable, Localizable, Deletable, Versionable, Tenantable |
||
| 59 | { |
||
| 60 | 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 Loading history...
|
|||
| 61 | 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 Loading history...
|
|||
| 62 | 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 Loading history...
|
|||
| 63 | |||
| 64 | 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 Loading history...
|
|||
| 65 | 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 Loading history...
|
|||
| 66 | 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 Loading history...
|
|||
| 67 | 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 Loading history...
|
|||
| 68 | 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 Loading history...
|
|||
| 69 | 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 Loading history...
|
|||
| 70 | use TranslationAccessor\Data; |
||
|
0 ignored issues
–
show
The type
Ds\Component\Translation...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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 71 | 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 Loading history...
|
|||
| 72 | 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 Loading history...
|
|||
| 73 | 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 Loading history...
|
|||
| 74 | |||
| 75 | /** |
||
| 76 | * @var integer |
||
| 77 | * @ApiProperty(identifier=false, writable=false) |
||
| 78 | * @Serializer\Groups({"data_output"}) |
||
| 79 | * @ORM\Id |
||
| 80 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 81 | * @ORM\Column(name="id", type="integer") |
||
| 82 | */ |
||
| 83 | private $id; |
||
|
0 ignored issues
–
show
|
|||
| 84 | |||
| 85 | /** |
||
| 86 | * @var string |
||
| 87 | * @ApiProperty(identifier=true, writable=false) |
||
| 88 | * @Serializer\Groups({"data_output"}) |
||
| 89 | * @ORM\Column(name="uuid", type="guid", unique=true) |
||
| 90 | * @Assert\Uuid |
||
| 91 | */ |
||
| 92 | private $uuid; |
||
|
0 ignored issues
–
show
|
|||
| 93 | |||
| 94 | /** |
||
| 95 | * @var \DateTime |
||
| 96 | * @ApiProperty(writable=false) |
||
| 97 | * @Serializer\Groups({"data_output"}) |
||
| 98 | */ |
||
| 99 | protected $createdAt; |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @var \DateTime |
||
| 103 | * @ApiProperty(writable=false) |
||
| 104 | * @Serializer\Groups({"data_output"}) |
||
| 105 | */ |
||
| 106 | protected $updatedAt; |
||
| 107 | |||
| 108 | /** |
||
| 109 | * @var \DateTime |
||
| 110 | * @ApiProperty(writable=false) |
||
| 111 | * @Serializer\Groups({"data_output"}) |
||
| 112 | */ |
||
| 113 | protected $deletedAt; |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @var string |
||
| 117 | * @ApiProperty |
||
| 118 | * @Serializer\Groups({"data_output", "data_input"}) |
||
| 119 | * @ORM\Column(name="`owner`", type="string", length=255, nullable=true) |
||
| 120 | * @Assert\NotBlank |
||
| 121 | * @Assert\Length(min=1, max=255) |
||
| 122 | */ |
||
| 123 | private $owner; |
||
|
0 ignored issues
–
show
|
|||
| 124 | |||
| 125 | /** |
||
| 126 | * @var string |
||
| 127 | * @ApiProperty |
||
| 128 | * @Serializer\Groups({"data_output", "data_input"}) |
||
| 129 | * @ORM\Column(name="owner_uuid", type="guid", nullable=true) |
||
| 130 | * @Assert\NotBlank |
||
| 131 | * @Assert\Uuid |
||
| 132 | */ |
||
| 133 | private $ownerUuid; |
||
|
0 ignored issues
–
show
|
|||
| 134 | |||
| 135 | /** |
||
| 136 | * @var string |
||
| 137 | * @ApiProperty |
||
| 138 | * @Serializer\Groups({"data_output", "data_input"}) |
||
| 139 | * @ORM\Column(name="slug", type="string") |
||
| 140 | * @Assert\NotBlank |
||
| 141 | * @Assert\Length(min=1, max=255) |
||
| 142 | */ |
||
| 143 | private $slug; |
||
|
0 ignored issues
–
show
|
|||
| 144 | |||
| 145 | /** |
||
| 146 | * @var array |
||
| 147 | * @ApiProperty |
||
| 148 | * @Serializer\Groups({"data_output", "data_input"}) |
||
| 149 | * @Assert\Type("array") |
||
| 150 | * @Assert\NotBlank |
||
| 151 | * @Assert\All({ |
||
| 152 | * @Assert\NotBlank, |
||
| 153 | * @Assert\Length(min=1) |
||
| 154 | * }) |
||
| 155 | * @Locale |
||
| 156 | * @Translate |
||
| 157 | */ |
||
| 158 | private $title; |
||
| 159 | |||
| 160 | /** |
||
| 161 | * @var array |
||
| 162 | * @ApiProperty |
||
| 163 | * @Serializer\Groups({"data_output", "data_input"}) |
||
| 164 | * @Assert\Type("array") |
||
| 165 | * @Assert\NotBlank |
||
| 166 | * @Assert\All({ |
||
| 167 | * @Assert\Type("array"), |
||
| 168 | * @Assert\NotBlank |
||
| 169 | * }) |
||
| 170 | * @Locale |
||
| 171 | * @Translate |
||
| 172 | */ |
||
| 173 | private $data; |
||
| 174 | |||
| 175 | /** |
||
| 176 | * @var integer |
||
| 177 | * @ApiProperty |
||
| 178 | * @Serializer\Groups({"data_output", "data_input"}) |
||
| 179 | * @ORM\Column(name="version", type="integer") |
||
| 180 | * @ORM\Version |
||
| 181 | * @Assert\NotBlank |
||
| 182 | * @Assert\Type("integer") |
||
| 183 | */ |
||
| 184 | private $version; |
||
|
0 ignored issues
–
show
|
|||
| 185 | |||
| 186 | /** |
||
| 187 | * @var string |
||
| 188 | * @ApiProperty(writable=false) |
||
| 189 | * @Serializer\Groups({"data_output"}) |
||
| 190 | * @ORM\Column(name="tenant", type="guid") |
||
| 191 | * @Assert\Uuid |
||
| 192 | */ |
||
| 193 | private $tenant; |
||
|
0 ignored issues
–
show
|
|||
| 194 | |||
| 195 | /** |
||
| 196 | * Constructor |
||
| 197 | */ |
||
| 198 | public function __construct() |
||
| 199 | { |
||
| 200 | $this->title = []; |
||
| 201 | $this->data = []; |
||
| 202 | } |
||
| 203 | } |
||
| 204 |
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