src/Entity/Shipping.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ShippingRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassShippingRepository::class)]
  7. class Shipping
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  14.     private ?string $shipping_weight null;
  15.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  16.     private ?string $shipping_price null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getShippingWeight(): ?string
  22.     {
  23.         return $this->shipping_weight;
  24.     }
  25.     public function setShippingWeight(string $shipping_weight): self
  26.     {
  27.         $this->shipping_weight $shipping_weight;
  28.         return $this;
  29.     }
  30.     public function getShippingPrice(): ?string
  31.     {
  32.         return $this->shipping_price;
  33.     }
  34.     public function setShippingPrice(string $shipping_price): self
  35.     {
  36.         $this->shipping_price $shipping_price;
  37.         return $this;
  38.     }
  39. }