src/Entity/Event.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity()
  6. */
  7. class Event
  8. {
  9. /**
  10. * @ORM\Id
  11. * @ORM\GeneratedValue
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\Column(type="string", length=255)
  17. */
  18. private $title;
  19. /**
  20. * @ORM\Column(type="text")
  21. */
  22. private $description;
  23. /**
  24. * @ORM\Column(type="datetime")
  25. */
  26. private $date;
  27. /**
  28. * @ORM\Column(type="string", length=255)
  29. */
  30. private $location;
  31. /**
  32. * @ORM\Column(type="string", length=255, nullable=true)
  33. */
  34. private $image;
  35. /**
  36. * @ORM\Column(type="string", length=255)
  37. */
  38. private $category;
  39. /**
  40. * @ORM\Column(type="boolean")
  41. */
  42. private $isFree;
  43. /**
  44. * @ORM\Column(type="float", nullable=true)
  45. */
  46. private $price;
  47. public function getId(): ?int { return $this->id; }
  48. public function getTitle(): ?string { return $this->title; }
  49. public function setTitle(string $title): self { $this->title = $title; return $this; }
  50. public function getDescription(): ?string { return $this->description; }
  51. public function setDescription(string $description): self { $this->description = $description; return $this; }
  52. public function getDate(): ?\DateTimeInterface { return $this->date; }
  53. public function setDate(\DateTimeInterface $date): self { $this->date = $date; return $this; }
  54. public function getLocation(): ?string { return $this->location; }
  55. public function setLocation(string $location): self { $this->location = $location; return $this; }
  56. public function getImage(): ?string { return $this->image; }
  57. public function setImage(?string $image): self { $this->image = $image; return $this; }
  58. public function getCategory(): ?string { return $this->category; }
  59. public function setCategory(string $category): self { $this->category = $category; return $this; }
  60. public function getIsFree(): ?bool { return $this->isFree; }
  61. public function setIsFree(bool $isFree): self { $this->isFree = $isFree; return $this; }
  62. public function getPrice(): ?float { return $this->price; }
  63. public function setPrice(?float $price): self { $this->price = $price; return $this; }
  64. }