UserJob::class])] #[ORM\Entity] #[ORM\Table('chill_main_user_job')] class UserJob { #[ORM\Column(name: 'active', type: \Doctrine\DBAL\Types\Types::BOOLEAN)] protected bool $active = true; #[Serializer\Groups(['read', 'docgen:read'])] #[ORM\Id] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)] #[ORM\GeneratedValue(strategy: 'AUTO')] protected ?int $id = null; /** * @var array */ #[Serializer\Groups(['read', 'docgen:read'])] #[ORM\Column(name: 'label', type: \Doctrine\DBAL\Types\Types::JSON)] #[Serializer\Context(['is-translatable' => true], groups: ['docgen:read'])] protected array $label = []; public function getId(): ?int { return $this->id; } /** * @return array|string[] */ public function getLabel(): array { return $this->label; } public function isActive(): bool { return $this->active; } public function setActive(bool $active): UserJob { $this->active = $active; return $this; } /** * @param array|string[] $label */ public function setLabel(array $label): UserJob { $this->label = $label; return $this; } }