<?php
namespace App\Entity;
use App\Entity\Item\Item;
use App\Entity\Traits\IdTrait;
use App\Repository\AnotherRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AnotherRepository::class)
*/
class Another
{
use IdTrait;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $label_pl;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $label_en;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $calculation_factor;
/**
* @ORM\ManyToOne(targetEntity=Item::class, inversedBy="anothers")
*/
private $item;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name_slug;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $active;
/**
* @ORM\Column(type="integer", length=255, nullable=true)
*/
private $position;
public function getLabelPl(): ?string
{
return $this->label_pl;
}
public function setLabelPl(?string $label_pl): self
{
$this->label_pl = $label_pl;
return $this;
}
public function getLabelEn(): ?string
{
return $this->label_en;
}
public function setLabelEn(?string $label_en): self
{
$this->label_en = $label_en;
return $this;
}
public function getCalculationFactor(): ?int
{
return $this->calculation_factor;
}
public function setCalculationFactor(?int $calculation_factor): self
{
$this->calculation_factor = $calculation_factor;
return $this;
}
public function getItem(): ?Item
{
return $this->item;
}
public function setItem(?Item $item): self
{
$this->item = $item;
return $this;
}
public function getNameSlug(): ?string
{
return $this->name_slug;
}
public function setNameSlug(?string $name_slug): self
{
$this->name_slug = $name_slug;
return $this;
}
public function getActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): self
{
$this->active = $active;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
public function setPosition(?int $position): self
{
$this->position = $position;
return $this;
}
}