| 1 | <?php |
||
| 19 | trait PropertyActiveStrictTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var bool Is active. Default false. |
||
| 23 | * @ORM\Column(name="active", type="boolean", nullable=false) |
||
| 24 | * @Assert\NotNull() |
||
| 25 | * @OA\ApiProperty( |
||
| 26 | * attributes={ |
||
| 27 | * "swagger_context"={ |
||
| 28 | * "example"=false |
||
| 29 | * } |
||
| 30 | * } |
||
| 31 | * ) |
||
| 32 | * @Gedmo\Versioned |
||
| 33 | * @OA\ApiFilter(ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter::class) |
||
| 34 | * @SA\Groups({"read", "write"}) |
||
| 35 | */ |
||
| 36 | private $active = false; |
||
| 37 | |||
| 38 | 1 | public function isActive(): bool |
|
| 42 | |||
| 43 | 1 | public function setActive(bool $active): self |
|
| 49 | } |
||
| 50 |