src/Entity/Currency.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CurrencyRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Ignore;
  7. /**
  8.  * @ORM\Entity(repositoryClass=CurrencyRepository::class)
  9.  * @Auditable()
  10.  */
  11. class Currency
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $label;
  23.     /**
  24.      * @ORM\Column(type="string", length=16, nullable=true)
  25.      */
  26.     private $acronym;
  27.     /**
  28.      * @ORM\Column(type="boolean", nullable=true)
  29.      */
  30.     private $isLocal;
  31.     /**
  32.      * @ORM\Column(type="boolean")
  33.      */
  34.     private $isDeleted;
  35.     /**
  36.      * @Ignore()
  37.      * @ORM\ManyToOne(targetEntity=Users::class)
  38.      */
  39.     private $userCreate;
  40.     /**
  41.      * @Ignore()
  42.      * @ORM\ManyToOne(targetEntity=Users::class)
  43.      */
  44.     private $userUpdate;
  45.     /**
  46.      * @ORM\Column(type="datetime")
  47.      */
  48.     private $dateCreate;
  49.     /**
  50.      * @ORM\Column(type="datetime", nullable=true)
  51.      */
  52.     private $dateUpdate;
  53.     public function getId(): ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getLabel(): ?string
  58.     {
  59.         return $this->label;
  60.     }
  61.     public function setLabel(string $label): self
  62.     {
  63.         $this->label $label;
  64.         return $this;
  65.     }
  66.     public function getAcronym(): ?string
  67.     {
  68.         return $this->acronym;
  69.     }
  70.     public function setAcronym(?string $acronym): self
  71.     {
  72.         $this->acronym $acronym;
  73.         return $this;
  74.     }
  75.     public function getIsLocal(): ?bool
  76.     {
  77.         return $this->isLocal;
  78.     }
  79.     public function setIsLocal(?bool $isLocal): self
  80.     {
  81.         $this->isLocal $isLocal;
  82.         return $this;
  83.     }
  84.     public function getIsDeleted(): ?bool
  85.     {
  86.         return $this->isDeleted;
  87.     }
  88.     public function setIsDeleted(bool $isDeleted): self
  89.     {
  90.         $this->isDeleted $isDeleted;
  91.         return $this;
  92.     }
  93.      /**
  94.      * @Ignore()
  95.      */
  96.     public function getUserCreate(): ?Users
  97.     {
  98.         return $this->userCreate;
  99.     }
  100.     public function setUserCreate(?Users $userCreate): self
  101.     {
  102.         $this->userCreate $userCreate;
  103.         return $this;
  104.     }
  105.      /**
  106.      * @Ignore()
  107.      */
  108.     public function getUserUpdate(): ?Users
  109.     {
  110.         return $this->userUpdate;
  111.     }
  112.     public function setUserUpdate(?Users $userUpdate): self
  113.     {
  114.         $this->userUpdate $userUpdate;
  115.         return $this;
  116.     }
  117.     public function getDateCreate(): ?\DateTimeInterface
  118.     {
  119.         return $this->dateCreate;
  120.     }
  121.     public function setDateCreate(\DateTimeInterface $dateCreate): self
  122.     {
  123.         $this->dateCreate $dateCreate;
  124.         return $this;
  125.     }
  126.     public function getDateUpdate(): ?\DateTimeInterface
  127.     {
  128.         return $this->dateUpdate;
  129.     }
  130.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  131.     {
  132.         $this->dateUpdate $dateUpdate;
  133.         return $this;
  134.     }
  135. }