src/Entity/Another.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Item\Item;
  4. use App\Entity\Traits\IdTrait;
  5. use App\Repository\AnotherRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=AnotherRepository::class)
  9.  */
  10. class Another
  11. {
  12.     use IdTrait;
  13.     /**
  14.      * @ORM\Column(type="string", length=255, nullable=true)
  15.      */
  16.     private $label_pl;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $label_en;
  21.     /**
  22.      * @ORM\Column(type="integer", nullable=true)
  23.      */
  24.     private $calculation_factor;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=Item::class, inversedBy="anothers")
  27.      */
  28.     private $item;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $name_slug;
  33.     /**
  34.      * @ORM\Column(type="boolean", nullable=true)
  35.      */
  36.     private $active;
  37.     /**
  38.      * @ORM\Column(type="integer", length=255, nullable=true)
  39.      */
  40.     private $position;
  41.     public function getLabelPl(): ?string
  42.     {
  43.         return $this->label_pl;
  44.     }
  45.     public function setLabelPl(?string $label_pl): self
  46.     {
  47.         $this->label_pl = $label_pl;
  48.         return $this;
  49.     }
  50.     public function getLabelEn(): ?string
  51.     {
  52.         return $this->label_en;
  53.     }
  54.     public function setLabelEn(?string $label_en): self
  55.     {
  56.         $this->label_en = $label_en;
  57.         return $this;
  58.     }
  59.     public function getCalculationFactor(): ?int
  60.     {
  61.         return $this->calculation_factor;
  62.     }
  63.     public function setCalculationFactor(?int $calculation_factor): self
  64.     {
  65.         $this->calculation_factor = $calculation_factor;
  66.         return $this;
  67.     }
  68.     public function getItem(): ?Item
  69.     {
  70.         return $this->item;
  71.     }
  72.     public function setItem(?Item $item): self
  73.     {
  74.         $this->item = $item;
  75.         return $this;
  76.     }
  77.     public function getNameSlug(): ?string
  78.     {
  79.         return $this->name_slug;
  80.     }
  81.     public function setNameSlug(?string $name_slug): self
  82.     {
  83.         $this->name_slug = $name_slug;
  84.         return $this;
  85.     }
  86.     public function getActive(): ?bool
  87.     {
  88.         return $this->active;
  89.     }
  90.     public function setActive(?bool $active): self
  91.     {
  92.         $this->active = $active;
  93.         return $this;
  94.     }
  95.     public function getPosition(): ?int
  96.     {
  97.         return $this->position;
  98.     }
  99.     public function setPosition(?int $position): self
  100.     {
  101.         $this->position = $position;
  102.         return $this;
  103.     }
  104. }