<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
*/
class Allpublications
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="text", nullable=false)
*/
private $title;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $type;
/**
* @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 $pages;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $issue;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $authors;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $year;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="allpublications")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $created_at;
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;
}
/**
* @return mixed
*/
public function getAuthors()
{
return $this->authors;
}
/**
* @param mixed $authors
*/
public function setAuthors($authors): void
{
$this->authors = $authors;
}
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 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;
}
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* @param mixed $name
*/
public function setName($name): void
{
$this->name = $name;
}
/**
* @return mixed
*/
public function getType()
{
return $this->type;
}
/**
* @param mixed $type
*/
public function setType($type): void
{
$this->type = $type;
}
/**
* @return mixed
*/
public function getPages()
{
return $this->pages;
}
/**
* @param mixed $pages
*/
public function setPages($pages): void
{
$this->pages = $pages;
}
public function getCreatedAt(): ?\DateTime
{
return $this->created_at;
}
public function setCreatedAt(?\DateTime $created_at): self
{
$this->created_at = $created_at;
return $this;
}
}