<?php
namespace App\Entity;
use App\Repository\SizeRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: SizeRepository::class)]
class Size
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
#[Groups(['sizes'])]
private ?int $id = null;
#[ORM\Column(nullable: true)]
#[Groups(['sizes'])]
private ?int $weight = null;
#[ORM\Column(nullable: true)]
#[Groups(['sizes'])]
private ?int $volume = null;
#[ORM\Column(length: 255, nullable: true)]
#[Groups(['sizes'])]
private ?string $volumeunit = null;
#[ORM\Column(nullable: true)]
#[Groups(['sizes'])]
private ?int $height = null;
#[ORM\Column(nullable: true)]
#[Groups(['sizes'])]
private ?int $width = null;
#[ORM\Column(nullable: true)]
#[Groups(['sizes'])]
private ?int $depth = null;
#[ORM\Column(length: 255, nullable: true)]
#[Groups(['sizes'])]
private ?string $weightunit = null;
#[ORM\Column(length: 255, nullable: true)]
#[Groups(['sizes'])]
private ?string $lengthunit = null;
#[ORM\ManyToOne(inversedBy: 'sizes')]
#[ORM\JoinColumn(nullable: false)]
// #[Groups(['company'])]
private ?Marchandise $Marchandise = null;
public function getId(): ?int
{
return $this->id;
}
public function getWeight(): ?int
{
return $this->weight;
}
public function setWeight(?int $weight): static
{
$this->weight = $weight;
return $this;
}
public function getVolume(): ?int
{
return $this->volume;
}
public function setVolume(?int $volume): static
{
$this->volume = $volume;
return $this;
}
public function getVolumeunit(): ?string
{
return $this->volumeunit;
}
public function setVolumeunit(?string $volumeunit): static
{
$this->volumeunit = $volumeunit;
return $this;
}
public function getHeight(): ?int
{
return $this->height;
}
public function setHeight(?int $height): static
{
$this->height = $height;
return $this;
}
public function getWidth(): ?int
{
return $this->width;
}
public function setWidth(?int $width): static
{
$this->width = $width;
return $this;
}
public function getDepth(): ?int
{
return $this->depth;
}
public function setDepth(?int $depth): static
{
$this->depth = $depth;
return $this;
}
public function getWeightunit(): ?string
{
return $this->weightunit;
}
public function setWeightunit(?string $weightunit): static
{
$this->weightunit = $weightunit;
return $this;
}
public function getLengthunit(): ?string
{
return $this->lengthunit;
}
public function setLengthunit(?string $lengthunit): static
{
$this->lengthunit = $lengthunit;
return $this;
}
public function getMarchandise(): ?Marchandise
{
return $this->Marchandise;
}
public function setMarchandise(?Marchandise $Marchandise): static
{
$this->Marchandise = $Marchandise;
return $this;
}
}