src/Entity/ArticlePresse.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ArticlePresseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ArticlePresseRepository::class)
  7. */
  8. class ArticlePresse
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=255)
  18. */
  19. private $publication;
  20. /**
  21. * @ORM\Column(type="date", nullable=true)
  22. */
  23. private $date;
  24. /**
  25. * @ORM\ManyToOne(targetEntity=Media::class, cascade ={"persist"})
  26. */
  27. private $media;
  28. /**
  29. * @ORM\Column(type="string", length=255, nullable=true)
  30. */
  31. private $lienYoutube;
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. */
  35. private $lienExterne;
  36. /**
  37. * @ORM\Column(type="boolean")
  38. */
  39. private $isActive;
  40. public function getId(): ?int
  41. {
  42. return $this->id;
  43. }
  44. public function getPublication(): ?string
  45. {
  46. return $this->publication;
  47. }
  48. public function setPublication(string $publication): self
  49. {
  50. $this->publication = $publication;
  51. return $this;
  52. }
  53. public function getDate(): ?\DateTimeInterface
  54. {
  55. return $this->date;
  56. }
  57. public function setDate(?\DateTimeInterface $date): self
  58. {
  59. $this->date = $date;
  60. return $this;
  61. }
  62. public function getMedia(): ?Media
  63. {
  64. return $this->media;
  65. }
  66. public function setMedia(?Media $media): self
  67. {
  68. $this->media = $media;
  69. return $this;
  70. }
  71. public function getLienYoutube(): ?string
  72. {
  73. return $this->lienYoutube;
  74. }
  75. public function setLienYoutube(?string $lienYoutube): self
  76. {
  77. $this->lienYoutube = $lienYoutube;
  78. return $this;
  79. }
  80. public function getLienExterne(): ?string
  81. {
  82. return $this->lienExterne;
  83. }
  84. public function setLienExterne(?string $lienExterne): self
  85. {
  86. $this->lienExterne = $lienExterne;
  87. return $this;
  88. }
  89. public function isIsActive(): ?bool
  90. {
  91. return $this->isActive;
  92. }
  93. public function setIsActive(bool $isActive): self
  94. {
  95. $this->isActive = $isActive;
  96. return $this;
  97. }
  98. }