src/Entity/Vat.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeInterface;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\VatRepository")
  9.  * @ORM\Table(name="vat")
  10.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  11.  */
  12. class Vat
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\Column(type="bigint", options={"unsigned":true})
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="string", unique=true, nullable=true)
  22.      */
  23.     private $pais;
  24.     /**
  25.      * @ORM\Column(type="float", nullable=true, precision=2)
  26.      */
  27.     private $vat;
  28.     /**
  29.      * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  30.      */
  31.     private $deletedAt;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  34.      * @Gedmo\Timestampable(on="update")
  35.      */
  36.     private $updatedAt;
  37.     /**
  38.      * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  39.      * @Gedmo\Timestampable(on="create")
  40.      */
  41.     private $createdAt;
  42.     public function getId(): ?string
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getPais(): ?string
  47.     {
  48.         return $this->pais;
  49.     }
  50.     public function setPais(?string $pais): static
  51.     {
  52.         $this->pais $pais;
  53.         return $this;
  54.     }
  55.     public function getVat(): ?float
  56.     {
  57.         return $this->vat;
  58.     }
  59.     public function setVat(?float $vat): static
  60.     {
  61.         $this->vat $vat;
  62.         return $this;
  63.     }
  64.     public function getDeletedAt(): ?DateTimeInterface
  65.     {
  66.         return $this->deletedAt;
  67.     }
  68.     public function setDeletedAt(?DateTimeInterface $deletedAt): static
  69.     {
  70.         $this->deletedAt $deletedAt;
  71.         return $this;
  72.     }
  73.     public function getUpdatedAt(): ?DateTimeInterface
  74.     {
  75.         return $this->updatedAt;
  76.     }
  77.     public function setUpdatedAt(DateTimeInterface $updatedAt): static
  78.     {
  79.         $this->updatedAt $updatedAt;
  80.         return $this;
  81.     }
  82.     public function getCreatedAt(): ?DateTimeInterface
  83.     {
  84.         return $this->createdAt;
  85.     }
  86.     public function setCreatedAt(DateTimeInterface $createdAt): static
  87.     {
  88.         $this->createdAt $createdAt;
  89.         return $this;
  90.     }
  91. }