src/Entity/PrescriberPoint.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PrescriberPointRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\UX\Turbo\Attribute\Broadcast;
  7. #[ORM\Entity(repositoryClassPrescriberPointRepository::class)]
  8. #[Broadcast]
  9. class PrescriberPoint
  10. {
  11.     use IdentifiableTrait;
  12.     #[ORM\Column]
  13.     private ?float $quantity null;
  14.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  15.     private ?\DateTimeInterface $createdAt null;
  16.     #[ORM\Column(length500nullabletrue)]
  17.     private ?string $commentary null;
  18.     #[ORM\ManyToOne(inversedBy'prescriberPoints')]
  19.     #[ORM\JoinColumn(nullabletrue)]
  20.     private ?BillingCenter $billingCenter null;
  21.     #[ORM\ManyToOne(inversedBy'prescriberPoints')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?User $origin null;
  24.     #[ORM\ManyToOne(inversedBy'prescriberPoints')]
  25.     private ?Invoice $invoice null;
  26.     #[ORM\ManyToOne(inversedBy'points')]
  27.     #[ORM\JoinColumn(nullabletrue)]
  28.     private ?Prescriber $prescriber null;
  29.     #[ORM\ManyToOne(inversedBy'prescriberPoints')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private ?Currency $currency null;
  32.     #[ORM\Column(nullabletrue)]
  33.     private ?bool $hidden null;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getPrescriber(): ?Prescriber
  39.     {
  40.         return $this->prescriber;
  41.     }
  42.     public function setPrescriber(?Prescriber $prescriber): self
  43.     {
  44.         $this->prescriber $prescriber;
  45.         return $this;
  46.     }
  47.     public function getQuantity(): ?float
  48.     {
  49.         return $this->quantity;
  50.     }
  51.     public function setQuantity(float $quantity): self
  52.     {
  53.         $this->quantity $quantity;
  54.         return $this;
  55.     }
  56.     public function getCreatedAt(): ?\DateTimeInterface
  57.     {
  58.         return $this->createdAt;
  59.     }
  60.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  61.     {
  62.         $this->createdAt $createdAt;
  63.         return $this;
  64.     }
  65.     public function getCommentary(): ?string
  66.     {
  67.         return $this->commentary;
  68.     }
  69.     public function setCommentary(?string $commentary): self
  70.     {
  71.         $this->commentary $commentary;
  72.         return $this;
  73.     }
  74.     public function getBillingCenter(): ?BillingCenter
  75.     {
  76.         return $this->billingCenter;
  77.     }
  78.     public function setBillingCenter(?BillingCenter $billingCenter): self
  79.     {
  80.         $this->billingCenter $billingCenter;
  81.         return $this;
  82.     }
  83.     public function getOrigin(): ?User
  84.     {
  85.         return $this->origin;
  86.     }
  87.     public function setOrigin(?User $origin): self
  88.     {
  89.         $this->origin $origin;
  90.         return $this;
  91.     }
  92.     public function getInvoice(): ?Invoice
  93.     {
  94.         return $this->invoice;
  95.     }
  96.     public function setInvoice(?Invoice $invoice): self
  97.     {
  98.         $this->invoice $invoice;
  99.         return $this;
  100.     }
  101.     public function getCurrency(): ?Currency
  102.     {
  103.         return $this->currency;
  104.     }
  105.     public function setCurrency(?Currency $currency): self
  106.     {
  107.         $this->currency $currency;
  108.         return $this;
  109.     }
  110.     public function isHidden(): ?bool
  111.     {
  112.         return $this->hidden;
  113.     }
  114.     public function setHidden(?bool $hidden): self
  115.     {
  116.         $this->hidden $hidden;
  117.         return $this;
  118.     }
  119. }