src/Entity/Size.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SizeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassSizeRepository::class)]
  7. class Size
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     #[Groups(['sizes'])]
  13.     private ?int $id null;
  14.     #[ORM\Column(nullabletrue)]
  15.     #[Groups(['sizes'])]
  16.     private ?int $weight null;
  17.     #[ORM\Column(nullabletrue)]
  18.     #[Groups(['sizes'])]
  19.     private ?int $volume null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     #[Groups(['sizes'])]
  22.     private ?string $volumeunit null;
  23.     #[ORM\Column(nullabletrue)]
  24.     #[Groups(['sizes'])]
  25.     private ?int $height null;
  26.     #[ORM\Column(nullabletrue)]
  27.     #[Groups(['sizes'])]
  28.     private ?int $width null;
  29.     #[ORM\Column(nullabletrue)]
  30.     #[Groups(['sizes'])]
  31.     private ?int $depth null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     #[Groups(['sizes'])]
  34.     private ?string $weightunit null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     #[Groups(['sizes'])]
  37.     private ?string $lengthunit null;
  38.     #[ORM\ManyToOne(inversedBy'sizes')]
  39.     #[ORM\JoinColumn(nullablefalse)]
  40.     // #[Groups(['company'])]
  41.     private ?Marchandise $Marchandise null;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getWeight(): ?int
  47.     {
  48.         return $this->weight;
  49.     }
  50.     public function setWeight(?int $weight): static
  51.     {
  52.         $this->weight $weight;
  53.         return $this;
  54.     }
  55.     
  56.     public function getVolume(): ?int
  57.     {
  58.         return $this->volume;
  59.     }
  60.     public function setVolume(?int $volume): static
  61.     {
  62.         $this->volume $volume;
  63.         return $this;
  64.     }
  65.     public function getVolumeunit(): ?string
  66.     {
  67.         return $this->volumeunit;
  68.     }
  69.     public function setVolumeunit(?string $volumeunit): static
  70.     {
  71.         $this->volumeunit $volumeunit;
  72.         return $this;
  73.     }
  74.     public function getHeight(): ?int
  75.     {
  76.         return $this->height;
  77.     }
  78.     public function setHeight(?int $height): static
  79.     {
  80.         $this->height $height;
  81.         return $this;
  82.     }
  83.     public function getWidth(): ?int
  84.     {
  85.         return $this->width;
  86.     }
  87.     public function setWidth(?int $width): static
  88.     {
  89.         $this->width $width;
  90.         return $this;
  91.     }
  92.     public function getDepth(): ?int
  93.     {
  94.         return $this->depth;
  95.     }
  96.     public function setDepth(?int $depth): static
  97.     {
  98.         $this->depth $depth;
  99.         return $this;
  100.     }
  101.     public function getWeightunit(): ?string
  102.     {
  103.         return $this->weightunit;
  104.     }
  105.     public function setWeightunit(?string $weightunit): static
  106.     {
  107.         $this->weightunit $weightunit;
  108.         return $this;
  109.     }
  110.     public function getLengthunit(): ?string
  111.     {
  112.         return $this->lengthunit;
  113.     }
  114.     public function setLengthunit(?string $lengthunit): static
  115.     {
  116.         $this->lengthunit $lengthunit;
  117.         return $this;
  118.     }
  119.     public function getMarchandise(): ?Marchandise
  120.     {
  121.         return $this->Marchandise;
  122.     }
  123.     public function setMarchandise(?Marchandise $Marchandise): static
  124.     {
  125.         $this->Marchandise $Marchandise;
  126.         return $this;
  127.     }
  128. }