src/Entity/Intitule.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Intitule
  6. *
  7. * @ORM\Table(name="intitule", options={"collate"="latin1_general_ci","charset"="latin1"})
  8. * @ORM\Entity(repositoryClass="App\Repository\IntituleRepository")
  9. */
  10. class Intitule
  11. {
  12. /**
  13. * @var integer
  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
  22. *
  23. * @ORM\Column(name="type", type="string", length=20, nullable=false)
  24. */
  25. private $type;
  26. /**
  27. * @var string
  28. *
  29. * @ORM\Column(name="description", type="string", length=100, nullable=false)
  30. */
  31. private $description;
  32. /**
  33. * @var string
  34. *
  35. * @ORM\Column(name="image", type="string", length=100, nullable=false)
  36. */
  37. private $image;
  38. /**
  39. * @var boolean
  40. *
  41. * @ORM\Column(name="prospect", type="boolean", nullable=false)
  42. */
  43. private $prospect;
  44. public function __toString()
  45. {
  46. return $this->description;
  47. }
  48. /**
  49. * Get id
  50. *
  51. * @return integer
  52. */
  53. public function getId()
  54. {
  55. return $this->id;
  56. }
  57. /**
  58. * Set type
  59. *
  60. * @param string $type
  61. * @return Intitule
  62. */
  63. public function setType($type)
  64. {
  65. $this->type = $type;
  66. return $this;
  67. }
  68. /**
  69. * Get type
  70. *
  71. * @return string
  72. */
  73. public function getType()
  74. {
  75. return $this->type;
  76. }
  77. /**
  78. * Set description
  79. *
  80. * @param string $description
  81. * @return Intitule
  82. */
  83. public function setDescription($description)
  84. {
  85. $this->description = $description;
  86. return $this;
  87. }
  88. /**
  89. * Get description
  90. *
  91. * @return string
  92. */
  93. public function getDescription()
  94. {
  95. return $this->description;
  96. }
  97. /**
  98. * Set image
  99. *
  100. * @param string $image
  101. * @return Intitule
  102. */
  103. public function setImage($image)
  104. {
  105. $this->image = $image;
  106. return $this;
  107. }
  108. /**
  109. * Get image
  110. *
  111. * @return string
  112. */
  113. public function getImage()
  114. {
  115. return $this->image;
  116. }
  117. /**
  118. * Set prospect
  119. *
  120. * @param boolean $prospect
  121. * @return Intitule
  122. */
  123. public function setProspect($prospect)
  124. {
  125. $this->prospect = $prospect;
  126. return $this;
  127. }
  128. /**
  129. * Get prospect
  130. *
  131. * @return boolean
  132. */
  133. public function getProspect()
  134. {
  135. return $this->prospect;
  136. }
  137. }