src/Flexy/ShopBundle/Entity/Taxes/ValueAddedTax.php line 9

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