Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace App\News\Request;
use App\Shared\Abstraction\AbstractRequest;
use Ramsey\Collection\Collection;
use Symfony\Component\Validator\Constraints\All;
use Symfony\Component\Validator\Constraints\Type;
use Symfony\Component\Validator\Constraints\Uuid;
use Symfony\Contracts\Service\Attribute\Required;
class NewsPartUpdateRequest extends AbstractRequest
{
#[Uuid]
public $uuid;
#[Type('string')]
public $name;
#[Type('string')]
public $code;
#[Type('bool')]
public $active;
#[Type('bool')]
public bool $main_page_render;
#[Uuid]
public $preview_text;
#[Uuid]
public $detail_text;
#[Uuid]
public $type_uuid;
#[All(
new Uuid()
)]
public $categories_uuid;
#[Uuid]
public $detail_image;
#[Uuid]
public $preview_image;
}