src/Flexy/ShopBundle/Entity/Taxes/ShippingTax.php line 11

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Taxes;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\Flexy\ShopBundle\Entity\Taxes\ShippingTaxRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassShippingTaxRepository::class)]
  7. #[ApiResource]
  8. class ShippingTax
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column]
  17.     private ?float $value null;
  18.     public function __toString()
  19.     {
  20.         return $this->name;
  21.     }
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getName(): ?string
  27.     {
  28.         return $this->name;
  29.     }
  30.     public function setName(string $name): self
  31.     {
  32.         $this->name $name;
  33.         return $this;
  34.     }
  35.     public function getValue(): ?float
  36.     {
  37.         return $this->value;
  38.     }
  39.     public function setValue(float $value): self
  40.     {
  41.         $this->value $value;
  42.         return $this;
  43.     }
  44. }