src/Entity/Conference.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\ConferenceRepository")
  6.  */
  7. class Conference
  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="string", length=255)
  21.      */
  22.     private $conferenceName;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $url;
  27.     /**
  28.      * @ORM\Column(type="datetime", nullable=true)
  29.      */
  30.     private $conferenceDate;
  31.     /**
  32.      * @ORM\Column(type="integer")
  33.      */
  34.     private $year;
  35.     /**
  36.      * @ORM\Column(type="string", length=255)
  37.      */
  38.     private $adresse;
  39.     /**
  40.      * @ORM\Column(type="string", length=255)
  41.      */
  42.     private $authors;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="conferences")
  45.      * @ORM\JoinColumn(nullable=false)
  46.      */
  47.     private $user;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getTitle(): ?string
  53.     {
  54.         return $this->title;
  55.     }
  56.     public function setTitle(?string $title): self
  57.     {
  58.         $this->title $title;
  59.         return $this;
  60.     }
  61.     public function getConferenceName(): ?string
  62.     {
  63.         return $this->conferenceName;
  64.     }
  65.     public function setConferenceName(?string $conferenceName): self
  66.     {
  67.         $this->conferenceName $conferenceName;
  68.         return $this;
  69.     }
  70.     public function getUrl(): ?string
  71.     {
  72.         return $this->url;
  73.     }
  74.     public function setUrl(?string $url): self
  75.     {
  76.         $this->url $url;
  77.         return $this;
  78.     }
  79.     public function getConferenceDate(): ?\DateTimeInterface
  80.     {
  81.         return $this->conferenceDate;
  82.     }
  83.     public function setConferenceDate(?\DateTimeInterface $conferenceDate): self
  84.     {
  85.         $this->conferenceDate $conferenceDate;
  86.         return $this;
  87.     }
  88.     public function getYear(): ?int
  89.     {
  90.         return $this->year;
  91.     }
  92.     public function setYear(int $year): self
  93.     {
  94.         $this->year $year;
  95.         return $this;
  96.     }
  97.     public function getAdresse(): ?string
  98.     {
  99.         return $this->adresse;
  100.     }
  101.     public function setAdresse(string $adresse): self
  102.     {
  103.         $this->adresse $adresse;
  104.         return $this;
  105.     }
  106.     public function getAuthors(): ?string
  107.     {
  108.         return $this->authors;
  109.     }
  110.     public function setAuthors(string $authors): self
  111.     {
  112.         $this->authors $authors;
  113.         return $this;
  114.     }
  115.     public function getUser(): ?User
  116.     {
  117.         return $this->user;
  118.     }
  119.     public function setUser(?User $user): self
  120.     {
  121.         $this->user $user;
  122.         return $this;
  123.     }
  124. }