src/Entity/Fees.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FeesRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. /**
  8.  * @ORM\Entity(repositoryClass=FeesRepository::class)
  9.  * @UniqueEntity(fields={"label"}, message="Un autre frais avec le même intitulé existe déjà.")
  10.  * @Auditable()
  11.  */
  12. class Fees
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $label;
  24.     /**
  25.      * @ORM\Column(type="string", length=1)
  26.      */
  27.     private $type;
  28.     /**
  29.      * @ORM\Column(type="float", nullable=true)
  30.      */
  31.     private $price;
  32.      /**
  33.      * @ORM\Column(type="boolean")
  34.      */
  35.     private $isDeleted;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=Users::class)
  38.      */
  39.     private $userCreate;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=Users::class)
  42.      */
  43.     private $userUpdate;
  44.     /**
  45.      * @ORM\Column(type="datetime", nullable=true)
  46.      */
  47.     private $dateCreate;
  48.     /**
  49.      * @ORM\Column(type="datetime", nullable=true)
  50.      */
  51.     private $dateUpdate;
  52.     /**
  53.      * @ORM\ManyToOne(targetEntity=Currency::class)
  54.      */
  55.     private $currency;
  56.     /**
  57.      * @ORM\Column(type="boolean")
  58.      */
  59.     private $isRequired;
  60.     /**
  61.      * @ORM\Column(type="boolean")
  62.      */
  63.     private $isWebCard;
  64.     /**
  65.      * @ORM\Column(type="boolean")
  66.      */
  67.     private $forDelivery;
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getLabel(): ?string
  73.     {
  74.         return $this->label;
  75.     }
  76.     public function setLabel(string $label): self
  77.     {
  78.         $this->label $label;
  79.         return $this;
  80.     }
  81.     public function getType(): ?string
  82.     {
  83.         return $this->type;
  84.     }
  85.     public function setType(string $type): self
  86.     {
  87.         $this->type $type;
  88.         return $this;
  89.     }
  90.     public function getPrice(): ?float
  91.     {
  92.         return $this->price;
  93.     }
  94.     public function setPrice(float $price): self
  95.     {
  96.         $this->price $price;
  97.         return $this;
  98.     }
  99.     public function getIsDeleted(): ?bool
  100.     {
  101.         return $this->isDeleted;
  102.     }
  103.     public function setIsDeleted(bool $isDeleted): self
  104.     {
  105.         $this->isDeleted $isDeleted;
  106.         return $this;
  107.     }
  108.     public function getUserCreate(): ?Users
  109.     {
  110.         return $this->userCreate;
  111.     }
  112.     public function setUserCreate(?Users $userCreate): self
  113.     {
  114.         $this->userCreate $userCreate;
  115.         return $this;
  116.     }
  117.     public function getUserUpdate(): ?Users
  118.     {
  119.         return $this->userUpdate;
  120.     }
  121.     public function setUserUpdate(?Users $userUpdate): self
  122.     {
  123.         $this->userUpdate $userUpdate;
  124.         return $this;
  125.     }
  126.     public function getDateCreate(): ?\DateTimeInterface
  127.     {
  128.         return $this->dateCreate;
  129.     }
  130.     public function setDateCreate(?\DateTimeInterface $dateCreate): self
  131.     {
  132.         $this->dateCreate $dateCreate;
  133.         return $this;
  134.     }
  135.     public function getDateUpdate(): ?\DateTimeInterface
  136.     {
  137.         return $this->dateUpdate;
  138.     }
  139.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  140.     {
  141.         $this->dateUpdate $dateUpdate;
  142.         return $this;
  143.     }
  144.     public function getCurrency(): ?Currency
  145.     {
  146.         return $this->currency;
  147.     }
  148.     public function setCurrency(?Currency $currency): self
  149.     {
  150.         $this->currency $currency;
  151.         return $this;
  152.     }
  153.     public function getIsRequired(): ?bool
  154.     {
  155.         return $this->isRequired;
  156.     }
  157.     public function setIsRequired(bool $isRequired): self
  158.     {
  159.         $this->isRequired $isRequired;
  160.         return $this;
  161.     }
  162.     public function getIsWebCard(): ?bool
  163.     {
  164.         return $this->isWebCard;
  165.     }
  166.     public function setIsWebCard(bool $isWebCard): self
  167.     {
  168.         $this->isWebCard $isWebCard;
  169.         return $this;
  170.     }
  171.     public function isForDelivery(): ?bool
  172.     {
  173.         return $this->forDelivery;
  174.     }
  175.     public function setForDelivery(bool $forDelivery): self
  176.     {
  177.         $this->forDelivery $forDelivery;
  178.         return $this;
  179.     }
  180. }