<?php
namespace App\Entity\Gos;
use App\Repository\Gos\ProductVariantSizeRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=ProductVariantSizeRepository::class)
*/
class ProductVariantSize
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
* @Assert\NotNull(message = "This field can't be empty")
*/
private $length;
/**
* @ORM\Column(type="integer")
* @Assert\NotNull(message = "This field can't be empty")
*/
private $width;
/**
* @ORM\Column(type="integer")
* @Assert\NotNull(message = "This field can't be empty")
*/
private $height;
/**
* @ORM\Column(type="integer")
* @Assert\NotNull(message = "This field can't be empty")
*/
private $weight;
public function getId(): ?int
{
return $this->id;
}
public function getLength(): ?int
{
return $this->length;
}
public function setLength(int $length): self
{
$this->length = $length;
return $this;
}
public function getWidth(): ?int
{
return $this->width;
}
public function setWidth(int $width): self
{
$this->width = $width;
return $this;
}
public function getHeight(): ?int
{
return $this->height;
}
public function setHeight(int $height): self
{
$this->height = $height;
return $this;
}
public function getWeight(): ?int
{
return $this->weight;
}
public function setWeight(int $weight): self
{
$this->weight = $weight;
return $this;
}
}