<?phpnamespace App\Entity\System;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Table(name="ps_zone") * * @ORM\Entity(repositoryClass="App\Repository\System\ZoneRepository") */class Zone{ /** * @var int * * @ORM\Id * * @ORM\GeneratedValue(strategy="NONE") * * @ORM\Column(type="integer", name="id_zone", length=10, options={"unsigned":true}) */ private $id; /** * @var string * * @ORM\Column(type="string", length=64) */ private $name; /** * @var bool * * @ORM\Column(type="boolean") */ private $active; public const ZONE_EU = 1; public function __construct() { $this->active = false; } /** * @return int */ public function getId(): int { return $this->id; } /** * @param int $id * * @return Zone */ public function setId(int $id): Zone { $this->id = $id; return $this; } /** * @return string */ public function getName(): string { return $this->name; } /** * @param string $name * * @return Zone */ public function setName(string $name): Zone { $this->name = $name; return $this; } /** * @return bool */ public function isActive(): bool { return $this->active; } /** * @param bool $active * * @return Zone */ public function setActive(bool $active): Zone { $this->active = $active; return $this; }}