src/Entity/Search/SearchCity.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=SearchCityRepository::class)
  6.  */
  7. class SearchCity
  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="searchCities",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 $idOffer;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $name_slug;
  31.     /**
  32.      * @ORM\Column(type="integer", length=255, nullable=true)
  33.      */
  34.     private $position;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getSearchEngine(): ?SearchEngineParameters
  40.     {
  41.         return $this->searchEngine;
  42.     }
  43.     public function setSearchEngine(?SearchEngineParameters $searchEngine): self
  44.     {
  45.         $this->searchEngine = $searchEngine;
  46.         return $this;
  47.     }
  48.     public function getNamePL(): ?string
  49.     {
  50.         return $this->namePL;
  51.     }
  52.     public function setNamePL(?string $namePL): self
  53.     {
  54.         $this->namePL = $namePL;
  55.         return $this;
  56.     }
  57.     public function getIdOffer(): ?string
  58.     {
  59.         return $this->idOffer;
  60.     }
  61.     public function setIdOffer(?string $idOffer): self
  62.     {
  63.         $this->idOffer = $idOffer;
  64.         return $this;
  65.     }
  66.     public function getNameSlug(): ?string
  67.     {
  68.         return $this->name_slug;
  69.     }
  70.     public function setNameSlug(?string $name_slug): self
  71.     {
  72.         $this->name_slug = $name_slug;
  73.         return $this;
  74.     }
  75.     public function getPosition(): ?int
  76.     {
  77.         return $this->position;
  78.     }
  79.     public function setPosition(?int $position): self
  80.     {
  81.         $this->position = $position;
  82.         return $this;
  83.     }
  84. }