src/Entity/CotationState.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * CotationState
  6. *
  7. * @ORM\Table(name="cotation_state", uniqueConstraints={@ORM\UniqueConstraint(name="cotation_state_id_uindex", columns={"id"})})
  8. * @ORM\Entity(repositoryClass="App\Repository\CotationStateRepository")
  9. */
  10. class CotationState
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var string|null
  22. *
  23. * @ORM\Column(name="libelle", type="string", length=255, nullable=true)
  24. */
  25. private $libelle;
  26. /**
  27. * @return int
  28. */
  29. public function getId()
  30. {
  31. return $this->id;
  32. }
  33. /**
  34. * @param int $id
  35. */
  36. public function setId($id)
  37. {
  38. $this->id = $id;
  39. }
  40. /**
  41. * @return string|null
  42. */
  43. public function getLibelle()
  44. {
  45. return $this->libelle;
  46. }
  47. /**
  48. * @param string|null $libelle
  49. */
  50. public function setLibelle($libelle)
  51. {
  52. $this->libelle = $libelle;
  53. }
  54. public function __toString(): string
  55. {
  56. return $this->getLibelle();
  57. }
  58. }