<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\PublicationRepository")
*/
class Publication
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private $title;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private $journal;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $url;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $volume;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $issue;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private $authors;
/**
* @ORM\Column(type="integer", nullable=false)
*/
private $year;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="publications")
* @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 getJournal(): ?string
{
return $this->journal;
}
public function setJournal(?string $journal): self
{
$this->journal = $journal;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getVolume(): ?string
{
return $this->volume;
}
public function setVolume(?string $volume): self
{
$this->volume = $volume;
return $this;
}
public function getIssue(): ?string
{
return $this->issue;
}
public function setIssue(?string $issue): self
{
$this->issue = $issue;
return $this;
}
public function getAuthors(): ?string
{
return $this->authors;
}
public function setAuthors(?string $authors): self
{
$this->authors = $authors;
return $this;
}
public function getYear(): ?int
{
return $this->year;
}
public function setYear(?int $year): self
{
$this->year = $year;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}