<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ConferenceRepository")
*/
class Conference
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
/**
* @ORM\Column(type="string", length=255)
*/
private $conferenceName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $url;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $conferenceDate;
/**
* @ORM\Column(type="integer")
*/
private $year;
/**
* @ORM\Column(type="string", length=255)
*/
private $adresse;
/**
* @ORM\Column(type="string", length=255)
*/
private $authors;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="conferences")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
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 getConferenceName(): ?string
{
return $this->conferenceName;
}
public function setConferenceName(?string $conferenceName): self
{
$this->conferenceName = $conferenceName;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getConferenceDate(): ?\DateTimeInterface
{
return $this->conferenceDate;
}
public function setConferenceDate(?\DateTimeInterface $conferenceDate): self
{
$this->conferenceDate = $conferenceDate;
return $this;
}
public function getYear(): ?int
{
return $this->year;
}
public function setYear(int $year): self
{
$this->year = $year;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getAuthors(): ?string
{
return $this->authors;
}
public function setAuthors(string $authors): self
{
$this->authors = $authors;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}