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