src/Entity/Prices.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PricesRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PricesRepository::class)
  8.  * @Auditable()
  9.  */
  10. class Prices
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="float", nullable=true)
  20.      */
  21.     private $price;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Sites::class)
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $site;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $tarif;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity=DocumentCategory::class)
  33.      * @ORM\JoinColumn(nullable=false)
  34.      */
  35.     private $documentCategory;
  36.     /**
  37.      * @ORM\Column(type="boolean")
  38.      */
  39.     private $status;
  40.     /**
  41.      * @ORM\Column(type="boolean")
  42.      */
  43.     private $isDeleted;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Users::class)
  46.      */
  47.     private $userCreate;
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity=Users::class)
  50.      */
  51.     private $userUpdate;
  52.     /**
  53.      * @ORM\Column(type="datetime")
  54.      */
  55.     private $dateCreate;
  56.     /**
  57.      * @ORM\Column(type="datetime", nullable=true)
  58.      */
  59.     private $dateUpdate;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity=Currency::class)
  62.      */
  63.     private $currency;
  64.     public function getId(): ?int
  65.     {
  66.         return $this->id;
  67.     }
  68.     public function getPrice(): ?float
  69.     {
  70.         return $this->price;
  71.     }
  72.     public function setPrice(float $price): self
  73.     {
  74.         $this->price $price;
  75.         return $this;
  76.     }
  77.     public function getCurrency(): ?Currency
  78.     {
  79.         return $this->currency;
  80.     }
  81.     public function setCurrency(Currency $currency): self
  82.     {
  83.         $this->currency $currency;
  84.         return $this;
  85.     }
  86.     public function getStatus(): ?bool
  87.     {
  88.         return $this->status;
  89.     }
  90.     public function setStatus(bool $status): self
  91.     {
  92.         $this->status $status;
  93.         return $this;
  94.     }
  95.     public function getSite(): ?Sites
  96.     {
  97.         return $this->site;
  98.     }
  99.     public function setSite(?Sites $site): self
  100.     {
  101.         $this->site $site;
  102.         return $this;
  103.     }
  104.     public function getDocumentCategory(): ?DocumentCategory
  105.     {
  106.         return $this->documentCategory;
  107.     }
  108.     public function setDocumentCategory(?DocumentCategory $documentCategory): self
  109.     {
  110.         $this->documentCategory $documentCategory;
  111.         return $this;
  112.     }
  113.     public function getIsDeleted(): ?bool
  114.     {
  115.         return $this->isDeleted;
  116.     }
  117.     public function setIsDeleted(bool $isDeleted): self
  118.     {
  119.         $this->isDeleted $isDeleted;
  120.         return $this;
  121.     }
  122.     public function getUserCreate(): ?Users
  123.     {
  124.         return $this->userCreate;
  125.     }
  126.     public function setUserCreate(?Users $userCreate): self
  127.     {
  128.         $this->userCreate $userCreate;
  129.         return $this;
  130.     }
  131.     public function getUserUpdate(): ?Users
  132.     {
  133.         return $this->userUpdate;
  134.     }
  135.     public function setUserUpdate(?Users $userUpdate): self
  136.     {
  137.         $this->userUpdate $userUpdate;
  138.         return $this;
  139.     }
  140.     public function getDateCreate(): ?\DateTimeInterface
  141.     {
  142.         return $this->dateCreate;
  143.     }
  144.     public function setDateCreate(\DateTimeInterface $dateCreate): self
  145.     {
  146.         $this->dateCreate $dateCreate;
  147.         return $this;
  148.     }
  149.     public function getDateUpdate(): ?\DateTimeInterface
  150.     {
  151.         return $this->dateUpdate;
  152.     }
  153.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  154.     {
  155.         $this->dateUpdate $dateUpdate;
  156.         return $this;
  157.     }
  158.     public function getTarif(): ?string
  159.     {
  160.         return $this->tarif;
  161.     }
  162.     public function setTarif(string $tarif): self
  163.     {
  164.         $this->tarif $tarif;
  165.         return $this;
  166.     }
  167. }