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 $papy_new;
  13.     private $greek_new;
  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($topic)
  45.     {
  46.         $this->tab $tab;
  47.     }
  48.     public function getTab()
  49.     {
  50.         return $this->tab;
  51.     }
  52.     public function setPapyNew($papyNew)
  53.     {
  54.         $this->papy_new $papyNew;
  55.     }
  56.     public function getPapyNew()
  57.     {
  58.         return $this->papy_new;
  59.     }
  60.     public function setLemma($lemma)
  61.     {
  62.         $this->lemma $lemma;
  63.     }
  64.     public function getLemma()
  65.     {
  66.         return $this->lemma;
  67.     }
  68.     public function setSort($sort)
  69.     {
  70.         $this->sort $sort;
  71.     }
  72.     public function getSort()
  73.     {
  74.         return $this->sort;
  75.     }
  76.     public function setPhrase($phrase)
  77.     {
  78.         $this->phrase $phrase;
  79.     }
  80.     public function getPhrase()
  81.     {
  82.         return $this->phrase;
  83.     }
  84.     public function addCorrection(\App\Entity\Correction $correction)
  85.     {
  86.         $this->corrections[] = $correction;
  87.     }
  88.     public function removeCorrection(\App\Entity\Correction $correction)
  89.     {
  90.         if (!$this->corrections->contains($correction)) {
  91.             return;
  92.         }    
  93.         $this->corrections->removeElement($correction);
  94.         $correction->removeIndexEntry($this);
  95.     }
  96.     public function getCorrections()
  97.     {
  98.         return $this->corrections;
  99.     }
  100.     public function addCcompilation(\App\Entity\Compilation $compilation)
  101.     {
  102.         $this->compilations[] = $compilation;
  103.     }
  104.     public function getCompilations()
  105.     {
  106.         return $this->compilations;
  107.     }
  108. }