Skip to content

Commit 19f395a

Browse files
GaryPEGEOTderrabus
andauthored
Apply suggestion
Co-authored-by: Alexander M. Turek <me@derrabus.de>
1 parent a68af64 commit 19f395a

File tree

1 file changed

+5
-17
lines changed
  • src/Symfony/Component/Serializer/Annotation

1 file changed

+5
-17
lines changed

src/Symfony/Component/Serializer/Annotation/Input.php

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,10 @@
1919
#[\Attribute(\Attribute::TARGET_PARAMETER)]
2020
class Input
2121
{
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+
) {
3927
}
4028
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy