src/Entity/Product.php line 16
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\ProductTranslation;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Translatable\Translatable;use Gedmo\Mapping\Annotation as Gedmo;#[Gedmo\TranslationEntity(class: self::TRANSLATION_ENTITY)]#[ORM\Entity()]class Product implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = ProductTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string',nullable: true)]#[Gedmo\Translatable]private ?string $title = null;#[ORM\Column(type: 'string',nullable: true)]private ?string $image = null;#[ORM\Column(type: 'string',nullable: true)]private ?string $minImage = null;#[ORM\Column(type: 'string',nullable: true)]private ?string $miniSecondImage = null;#[ORM\Column(type: 'text',nullable: true)]#[Gedmo\Translatable]private mixed $productDescription = null;#[ORM\Column(type: 'string',nullable: true)]#[Gedmo\Translatable]private mixed $type = null;#[ORM\Column(type: 'string',nullable: true)]#[Gedmo\Translatable]private mixed $weight = null;#[ORM\Column(type: 'string',nullable: true)]#[Gedmo\Translatable]private mixed $gold = null;#[ORM\Column(type: 'string',nullable: true)]#[Gedmo\Translatable]private mixed $stone = null;#[ORM\Column(type: 'float',nullable: true)]private ?float $price = null;#[ORM\Column(type: 'string',nullable: true)]private ?string $refNumber = null;#[ORM\ManyToOne(inversedBy: 'products')]#[ORM\JoinColumn(nullable: false)]private ?Category $category = null;#[ORM\ManyToOne(inversedBy: 'products')]#[ORM\JoinColumn(nullable: false)]private \App\Entity\Collection|null $collection = null;#[ORM\ManyToMany(targetEntity: Tag::class)]private Collection $tags;public function __construct(){$this->tags = new ArrayCollection();}/*** @return int|null*/public function getId(): ?int{return $this->id;}/*** @param int|null $id*/public function setId(?int $id): void{$this->id = $id;}/*** @return string|null*/public function getTitle(): ?string{return $this->title;}/*** @param string|null $title*/public function setTitle(?string $title): void{$this->title = $title;}/*** @return string|null*/public function getImage(): ?string{return $this->image;}/*** @param string|null $image*/public function setImage(?string $image): void{$this->image = $image;}/*** @return mixed|null*/public function getProductDescription(): mixed{return $this->productDescription;}/*** @param mixed|null $productDescription*/public function setProductDescription(mixed $productDescription): void{$this->productDescription = $productDescription;}public function getType(): ?string{return $this->type;}public function setType(?string $type): self{$this->type = $type;return $this;}public function getWeight(): ?string{return $this->weight;}public function setWeight(?string $weight): self{$this->weight = $weight;return $this;}public function getStone(): ?string{return $this->stone;}public function setStone(?string $stone): self{$this->stone = $stone;return $this;}/*** @return float|null*/public function getPrice(): ?float{return $this->price;}/*** @param float|null $price*/public function setPrice(?float $price): void{$this->price = $price;}/*** @return string|null*/public function getRefNumber(): ?string{return $this->refNumber;}/*** @param string|null $refNumber*/public function setRefNumber(?string $refNumber): void{$this->refNumber = $refNumber;}public function getCategory(): ?Category{return $this->category;}public function setCategory(?Category $category): self{$this->category = $category;return $this;}public function getCollection(): ?\App\Entity\Collection{return $this->collection;}public function setCollection(?\App\Entity\Collection $collection): self{$this->collection = $collection;return $this;}/*** @return Collection<int, Tag>*/public function getTags(): Collection{return $this->tags;}public function addTag(Tag $tag): self{if (!$this->tags->contains($tag)) {$this->tags->add($tag);}return $this;}public function removeTag(Tag $tag): self{$this->tags->removeElement($tag);return $this;}/*** @return string|null*/public function getMinImage(): ?string{return $this->minImage;}/*** @param string|null $minImage*/public function setMinImage(?string $minImage): void{$this->minImage = $minImage;}/*** @return string|null*/public function getMiniSecondImage(): ?string{return $this->miniSecondImage;}/*** @param string|null $miniSecondImage*/public function setMiniSecondImage(?string $miniSecondImage): void{$this->miniSecondImage = $miniSecondImage;}public function getGold(): ?string{return $this->gold;}public function setGold(?string $gold): static{$this->gold = $gold;return $this;}}