1 | <?php |
||
19 | trait PropertyNameStrictTrait |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | * @ORM\Column(name="name", type="string", length=255, nullable=false) |
||
24 | * @Assert\NotBlank() |
||
25 | * @OA\ApiProperty( |
||
26 | * attributes={ |
||
27 | * "swagger_context"={ |
||
28 | * "example"="Test Name" |
||
29 | * } |
||
30 | * } |
||
31 | * ) |
||
32 | * @Gedmo\Versioned |
||
33 | * @OA\ApiFilter(ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter::class, strategy="partial") |
||
34 | * @SA\Groups({"read", "write"}) |
||
35 | */ |
||
36 | private $name = ''; |
||
37 | |||
38 | public function getName(): string |
||
42 | |||
43 | public function setName(string $name): self |
||
49 | } |
||
50 |