src/Entity/IndexEntry.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IndexEntryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Entity\Compilation;
  6. class IndexEntry
  7. {
  8.     private $id;
  9.     private $type;
  10.     private $topic;
  11.     private $tab;
  12.     private $papyNew;
  13.     private $greekNew;
  14.     private $lemma;
  15.     private $sort;
  16.     private $phrase;
  17.     private $compilations;
  18.     private $corrections;
  19.     public function __construct()
  20.     {
  21.         $this->compilations = new \Doctrine\Common\Collections\ArrayCollection();
  22.         $this->corrections = new \Doctrine\Common\Collections\ArrayCollection();
  23.     }
  24.     public function getId()
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function setType($type)
  29.     {
  30.         $this->type $type;
  31.     }
  32.     public function getType()
  33.     {
  34.         return $this->type;
  35.     }
  36.     public function setTopic($topic)
  37.     {
  38.         $this->topic $topic;
  39.     }
  40.     public function getTopic()
  41.     {
  42.         return $this->topic;
  43.     }
  44.     public function setTab($tab)
  45.     {
  46.         $this->tab $tab;
  47.     }
  48.     public function getTab()
  49.     {
  50.         return $this->tab;
  51.     }
  52.     public function setPapyNew($papyNew)
  53.     {
  54.         $this->papyNew $papyNew;
  55.     }
  56.     public function getPapyNew()
  57.     {
  58.         return $this->papyNew;
  59.     }
  60.     public function setGreekNew($greekNew)
  61.     {
  62.         $this->greekNew $greekNew;
  63.     }
  64.     public function getGreekNew()
  65.     {
  66.         return $this->greekNew;
  67.     }
  68.     public function setLemma($lemma)
  69.     {
  70.         $this->lemma $lemma;
  71.     }
  72.     public function getLemma()
  73.     {
  74.         return $this->lemma;
  75.     }
  76.     public function setSort($sort)
  77.     {
  78.         $this->sort $sort;
  79.     }
  80.     public function getSort()
  81.     {
  82.         return $this->sort;
  83.     }
  84.     public function setPhrase($phrase)
  85.     {
  86.         $this->phrase $phrase;
  87.     }
  88.     public function getPhrase()
  89.     {
  90.         return $this->phrase;
  91.     }
  92.     public function addCorrection(\App\Entity\Correction $correction)
  93.     {
  94.         $this->corrections[] = $correction;
  95.     }
  96.     public function removeCorrection(\App\Entity\Correction $correction)
  97.     {
  98.         if (!$this->corrections->contains($correction)) {
  99.             return;
  100.         }    
  101.         $this->corrections->removeElement($correction);
  102.         $correction->removeIndexEntry($this);
  103.     }
  104.     public function getCorrections()
  105.     {
  106.         return $this->corrections;
  107.     }
  108.     public function addCcompilation(\App\Entity\Compilation $compilation)
  109.     {
  110.         $this->compilations[] = $compilation;
  111.     }
  112.     public function getCompilations()
  113.     {
  114.         return $this->compilations;
  115.     }
  116. }