<?php
namespace App\Entity;
use App\Repository\AuthorRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AuthorRepository::class)
*/
class Author
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $alternative_name;
/**
* @ORM\Column(type="array", nullable=true)
*/
private $affiliation = [];
/**
* @ORM\Column(type="array", nullable=true)
*/
private $last_known_institutions = [];
/**
* @ORM\Column(type="json", nullable=true)
*/
private $topics = [];
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $publications;
/**
* @ORM\Column(type="array", nullable=true)
*/
private $fields = [];
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getAlternativeName(): ?string
{
return $this->alternative_name;
}
public function setAlternativeName(?string $alternative_name): self
{
$this->alternative_name = $alternative_name;
return $this;
}
public function getAffiliation(): ?array
{
return $this->affiliation;
}
public function setAffiliation(?array $affiliation): self
{
$this->affiliation = $affiliation;
return $this;
}
public function getLastKnownInstitutions(): ?array
{
return $this->last_known_institutions;
}
public function setLastKnownInstitutions(?array $last_known_institutions): self
{
$this->last_known_institutions = $last_known_institutions;
return $this;
}
public function getTopics(): ?array
{
return $this->topics;
}
public function setTopics(?array $topics): self
{
$this->topics = $topics;
return $this;
}
public function getPublications(): ?string
{
return $this->publications;
}
public function setPublications(?string $publications): self
{
$this->publications = $publications;
return $this;
}
public function getFields(): ?array
{
return $this->fields;
}
public function setFields(?array $fields): self
{
$this->fields = $fields;
return $this;
}
}