src/Entity/Bailleur.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BailleurRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: BailleurRepository::class)]
  6. #[ORM\Table(name: 'Bailleur')]
  7. class Bailleur
  8. {
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue]
  11. #[ORM\Column(type: 'integer')]
  12. private ?int $id = null;
  13. #[ORM\Column(length: 20)]
  14. private ?string $libele = null;
  15. #[ORM\Column(name: 'drapoCloture', type: 'boolean', options: ['default'=>false])]
  16. private $drapoCloture;
  17. public function getId(): ?int
  18. {
  19. return $this->id;
  20. }
  21. public function setLibele(string $libele): self
  22. {
  23. $this->libele = $libele;
  24. return $this;
  25. }
  26. public function getLibele(): ?string
  27. {
  28. return $this->libele;
  29. }
  30. public function setDrapoCloture(bool $drapoCloture): self
  31. {
  32. $this->drapoCloture = $drapoCloture;
  33. return $this;
  34. }
  35. public function getDrapoCloture(): ?bool
  36. {
  37. return $this->drapoCloture;
  38. }
  39. }