src/Entity/Departement.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Ogresto.dep
  6.  *
  7.  * @ORM\Table(name="ogresto.dep", indexes={@ORM\Index(name="IDX_CC23B9454713BDFD", columns={"useridres"})})
  8.  * @ORM\Entity
  9.  */
  10. class Departement
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  18.      * @ORM\SequenceGenerator(sequenceName="ogresto.dep_id_seq", allocationSize=1, initialValue=1)
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string|null
  23.      *
  24.      * @ORM\Column(name="dep", type="string", length=5, nullable=true)
  25.      */
  26.     private $dep;
  27.     /**
  28.      * @var string|null
  29.      *
  30.      * @ORM\Column(name="nom_dep", type="string", length=500, nullable=true)
  31.      */
  32.     private $nom_dep;
  33.     /**
  34.      * @var bool|null
  35.      *
  36.      * @ORM\Column(name="deplocked", type="boolean", nullable=true)
  37.      */
  38.     private $depLocked false;
  39.     /**
  40.      * @var \Ogresto."user"
  41.      *
  42.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  43.      * @ORM\JoinColumns({
  44.      *   @ORM\JoinColumn(name="useridres", referencedColumnName="id")
  45.      * })
  46.      */
  47.     private $userId;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getDepLocked(): ?bool
  53.     {
  54.         return $this->depLocked;
  55.     }
  56.     public function setUserId(?int $userId): self
  57.     {
  58.         $this->userId $userId;
  59.         return $this;
  60.     }
  61.     public function getUserId()
  62.     {
  63.         return $this->userId;
  64.     }
  65.     public function setDepLocked(?bool $depLocked): self
  66.     {
  67.         $this->depLocked $depLocked;
  68.         return $this;
  69.     }
  70.     public function getDep(): ?string
  71.     {
  72.         return $this->dep;
  73.     }
  74.     public function setDep(?string $dep): self
  75.     {
  76.         $this->dep $dep;
  77.         return $this;
  78.     }
  79.     public function getNomDep(): ?string
  80.     {
  81.         return $this->nom_dep;
  82.     }
  83.     public function setNomDep(?string $nom_dep): self
  84.     {
  85.         $this->nom_dep $nom_dep;
  86.         return $this;
  87.     }
  88. }