<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
*/
class Event
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
/**
* @ORM\Column(type="text")
*/
private $description;
/**
* @ORM\Column(type="datetime")
*/
private $date;
/**
* @ORM\Column(type="string", length=255)
*/
private $location;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $image;
/**
* @ORM\Column(type="string", length=255)
*/
private $category;
/**
* @ORM\Column(type="boolean")
*/
private $isFree;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $price;
public function getId(): ?int { return $this->id; }
public function getTitle(): ?string { return $this->title; }
public function setTitle(string $title): self { $this->title = $title; return $this; }
public function getDescription(): ?string { return $this->description; }
public function setDescription(string $description): self { $this->description = $description; return $this; }
public function getDate(): ?\DateTimeInterface { return $this->date; }
public function setDate(\DateTimeInterface $date): self { $this->date = $date; return $this; }
public function getLocation(): ?string { return $this->location; }
public function setLocation(string $location): self { $this->location = $location; return $this; }
public function getImage(): ?string { return $this->image; }
public function setImage(?string $image): self { $this->image = $image; return $this; }
public function getCategory(): ?string { return $this->category; }
public function setCategory(string $category): self { $this->category = $category; return $this; }
public function getIsFree(): ?bool { return $this->isFree; }
public function setIsFree(bool $isFree): self { $this->isFree = $isFree; return $this; }
public function getPrice(): ?float { return $this->price; }
public function setPrice(?float $price): self { $this->price = $price; return $this; }
}