src/Entity/Author.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AuthorRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=AuthorRepository::class)
  9.  */
  10. class Author
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $alternative_name;
  26.     /**
  27.      * @ORM\Column(type="array", nullable=true)
  28.      */
  29.     private $affiliation = [];
  30.     /**
  31.      * @ORM\Column(type="array", nullable=true)
  32.      */
  33.     private $last_known_institutions = [];
  34.     /**
  35.      * @ORM\Column(type="json", nullable=true)
  36.      */
  37.     private $topics = [];
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $publications;
  42.     /**
  43.      * @ORM\Column(type="array", nullable=true)
  44.      */
  45.     private $fields = [];
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getName(): ?string
  51.     {
  52.         return $this->name;
  53.     }
  54.     public function setName(string $name): self
  55.     {
  56.         $this->name $name;
  57.         return $this;
  58.     }
  59.     public function getAlternativeName(): ?string
  60.     {
  61.         return $this->alternative_name;
  62.     }
  63.     public function setAlternativeName(?string $alternative_name): self
  64.     {
  65.         $this->alternative_name $alternative_name;
  66.         return $this;
  67.     }
  68.     public function getAffiliation(): ?array
  69.     {
  70.         return $this->affiliation;
  71.     }
  72.     public function setAffiliation(?array $affiliation): self
  73.     {
  74.         $this->affiliation $affiliation;
  75.         return $this;
  76.     }
  77.     public function getLastKnownInstitutions(): ?array
  78.     {
  79.         return $this->last_known_institutions;
  80.     }
  81.     public function setLastKnownInstitutions(?array $last_known_institutions): self
  82.     {
  83.         $this->last_known_institutions $last_known_institutions;
  84.         return $this;
  85.     }
  86.     public function getTopics(): ?array
  87.     {
  88.         return $this->topics;
  89.     }
  90.     public function setTopics(?array $topics): self
  91.     {
  92.         $this->topics $topics;
  93.         return $this;
  94.     }
  95.     public function getPublications(): ?string
  96.     {
  97.         return $this->publications;
  98.     }
  99.     public function setPublications(?string $publications): self
  100.     {
  101.         $this->publications $publications;
  102.         return $this;
  103.     }
  104.     public function getFields(): ?array
  105.     {
  106.         return $this->fields;
  107.     }
  108.     public function setFields(?array $fields): self
  109.     {
  110.         $this->fields $fields;
  111.         return $this;
  112.     }
  113. }