src/Entity/Collection.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Collection
  6. *
  7. * @ORM\Table(name="collection")
  8. * @ORM\Entity(repositoryClass="App\Repository\CollectionRepository")
  9. */
  10. class Collection
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer")
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. *
  23. * @ORM\Column(name="nom", type="text")
  24. */
  25. private $nom;
  26. /**
  27. * Get id
  28. *
  29. * @return int
  30. */
  31. public function getId()
  32. {
  33. return $this->id;
  34. }
  35. /**
  36. * Set nom
  37. *
  38. * @param string $nom
  39. *
  40. * @return Collection
  41. */
  42. public function setNom($nom)
  43. {
  44. $this->nom = $nom;
  45. return $this;
  46. }
  47. /**
  48. * Get nom
  49. *
  50. * @return string
  51. */
  52. public function getNom()
  53. {
  54. return $this->nom;
  55. }
  56. }