src/Entity/Gos/ProductVariantSize.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\ProductVariantSizeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProductVariantSizeRepository::class)
  8.  */
  9. class ProductVariantSize
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="integer")
  19.      * @Assert\NotNull(message = "This field can't be empty")
  20.      */
  21.     private $length;
  22.     /**
  23.      * @ORM\Column(type="integer")
  24.      * @Assert\NotNull(message = "This field can't be empty")
  25.      */
  26.     private $width;
  27.     /**
  28.      * @ORM\Column(type="integer")
  29.      * @Assert\NotNull(message = "This field can't be empty")
  30.      */
  31.     private $height;
  32.     /**
  33.      * @ORM\Column(type="integer")
  34.      * @Assert\NotNull(message = "This field can't be empty")
  35.      */
  36.     private $weight;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getLength(): ?int
  42.     {
  43.         return $this->length;
  44.     }
  45.     public function setLength(int $length): self
  46.     {
  47.         $this->length $length;
  48.         return $this;
  49.     }
  50.     public function getWidth(): ?int
  51.     {
  52.         return $this->width;
  53.     }
  54.     public function setWidth(int $width): self
  55.     {
  56.         $this->width $width;
  57.         return $this;
  58.     }
  59.     public function getHeight(): ?int
  60.     {
  61.         return $this->height;
  62.     }
  63.     public function setHeight(int $height): self
  64.     {
  65.         $this->height $height;
  66.         return $this;
  67.     }
  68.     public function getWeight(): ?int
  69.     {
  70.         return $this->weight;
  71.     }
  72.     public function setWeight(int $weight): self
  73.     {
  74.         $this->weight $weight;
  75.         return $this;
  76.     }
  77. }