mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
77 lines
1.3 KiB
PHP
77 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Chill\MainBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table("chill_main_user_job")
|
|
*/
|
|
class UserJob
|
|
{
|
|
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected ?int $id = null;
|
|
|
|
/**
|
|
* @var array|string[]A
|
|
* @ORM\Column(name="label", type="json")
|
|
*/
|
|
protected array $label = [];
|
|
|
|
/**
|
|
* @var bool
|
|
* @ORM\Column(name="active", type="boolean")
|
|
*/
|
|
protected bool $active = true;
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @return array|string[]
|
|
*/
|
|
public function getLabel(): array
|
|
{
|
|
return $this->label;
|
|
}
|
|
|
|
/**
|
|
* @param array|string[] $label
|
|
* @return UserJob
|
|
*/
|
|
public function setLabel(array $label): UserJob
|
|
{
|
|
$this->label = $label;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isActive(): bool
|
|
{
|
|
return $this->active;
|
|
}
|
|
|
|
/**
|
|
* @param bool $active
|
|
* @return UserJob
|
|
*/
|
|
public function setActive(bool $active): UserJob
|
|
{
|
|
$this->active = $active;
|
|
return $this;
|
|
}
|
|
}
|