<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Ogresto.dep
*
* @ORM\Table(name="ogresto.dep", indexes={@ORM\Index(name="IDX_CC23B9454713BDFD", columns={"useridres"})})
* @ORM\Entity
*/
class Departement
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="ogresto.dep_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="dep", type="string", length=5, nullable=true)
*/
private $dep;
/**
* @var string|null
*
* @ORM\Column(name="nom_dep", type="string", length=500, nullable=true)
*/
private $nom_dep;
/**
* @var bool|null
*
* @ORM\Column(name="deplocked", type="boolean", nullable=true)
*/
private $depLocked = false;
/**
* @var \Ogresto."user"
*
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="useridres", referencedColumnName="id")
* })
*/
private $userId;
public function getId(): ?int
{
return $this->id;
}
public function getDepLocked(): ?bool
{
return $this->depLocked;
}
public function setUserId(?int $userId): self
{
$this->userId = $userId;
return $this;
}
public function getUserId()
{
return $this->userId;
}
public function setDepLocked(?bool $depLocked): self
{
$this->depLocked = $depLocked;
return $this;
}
public function getDep(): ?string
{
return $this->dep;
}
public function setDep(?string $dep): self
{
$this->dep = $dep;
return $this;
}
public function getNomDep(): ?string
{
return $this->nom_dep;
}
public function setNomDep(?string $nom_dep): self
{
$this->nom_dep = $nom_dep;
return $this;
}
}