src/Entity/Search/SearchAnother.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Search;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass=SearchAnotherRepository::class)
  6.  */
  7. class SearchAnother
  8. {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity=SearchEngineParameters::class, inversedBy="searchAnothers",cascade={"persist"})
  17.      */
  18.     private $searchEngine;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $namePL;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $nameEN;
  27.     /**
  28.      * @ORM\Column(type="integer", length=255, nullable=true)
  29.      */
  30.     private $position;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getSearchEngine(): ?SearchEngineParameters
  36.     {
  37.         return $this->searchEngine;
  38.     }
  39.     public function setSearchEngine(?SearchEngineParameters $searchEngine): self
  40.     {
  41.         $this->searchEngine = $searchEngine;
  42.         return $this;
  43.     }
  44.     public function getNamePL(): ?string
  45.     {
  46.         return $this->namePL;
  47.     }
  48.     public function setNamePL(?string $namePL): self
  49.     {
  50.         $this->namePL = $namePL;
  51.         return $this;
  52.     }
  53.     public function getNameEN(): ?string
  54.     {
  55.         return $this->nameEN;
  56.     }
  57.     public function setNameEN(?string $nameEN): self
  58.     {
  59.         $this->nameEN = $nameEN;
  60.         return $this;
  61.     }
  62.     public function getPosition(): ?int
  63.     {
  64.         return $this->position;
  65.     }
  66.     public function setPosition(?int $position): self
  67.     {
  68.         $this->position = $position;
  69.         return $this;
  70.     }
  71. }