| 1 | <?php declare(strict_types = 1); |
||
| 10 | trait ActivableTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var bool |
||
| 14 | * |
||
| 15 | * @ORM\Column(name="is_active", type="boolean", nullable=false, options={"default":"1"}) |
||
| 16 | */ |
||
| 17 | protected $active = true; |
||
| 18 | |||
| 19 | public function isActive(): bool |
||
| 23 | |||
| 24 | public function setActive(bool $active): self |
||
| 30 | } |
||
| 31 |