src/Entity/Search/SearchIndustry.php line 11

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