File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed
src/Symfony/Component/Serializer/Annotation Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change 19
19
#[\Attribute(\Attribute::TARGET_PARAMETER )]
20
20
class Input
21
21
{
22
- public function __construct (private ?string $ format = null , private array $ serializationContext = [], private array $ validationGroups = ['Default ' ])
23
- {
24
- }
25
-
26
- public function getFormat (): ?string
27
- {
28
- return $ this ->format ;
29
- }
30
-
31
- public function getSerializationContext (): array
32
- {
33
- return $ this ->serializationContext ;
34
- }
35
-
36
- public function getValidationGroups (): array
37
- {
38
- return $ this ->validationGroups ;
22
+ public function __construct (
23
+ public readonly ?string $ format = null ,
24
+ public readonly array $ serializationContext = [],
25
+ public readonly array $ validationGroups = ['Default ' ]
26
+ ) {
39
27
}
40
28
}
You can’t perform that action at this time.
0 commit comments