src/Entity/Billings.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BillingsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBillingsRepository::class)]
  6. class Billings
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'billings')]
  13.     private $user;
  14.     #[ORM\Column(name'billing'type'string'nullablefalse)]
  15.     private ?string $billing;
  16.     #[ORM\Column(name'commandDate'type'date'nullabletrue)]
  17.     private ?\DateTime $commandDate;
  18.     #[ORM\Column(name'totalPaid'type'float'nullabletrue)]
  19.     private ?float $totalPaid;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     /**
  25.      * @return float|null
  26.      */
  27.     public function getTotalPaid(): ?float
  28.     {
  29.         return $this->totalPaid;
  30.     }
  31.     /**
  32.      * @param float|null $totalPaid
  33.      */
  34.     public function setTotalPaid(?float $totalPaid): void
  35.     {
  36.         $this->totalPaid $totalPaid;
  37.     }
  38.     /**
  39.      * @return \DateTime|null
  40.      */
  41.     public function getCommandDate(): ?\DateTime
  42.     {
  43.         return $this->commandDate;
  44.     }
  45.     /**
  46.      * @param \DateTime|null $commandDate
  47.      */
  48.     public function setCommandDate(?\DateTime $commandDate): void
  49.     {
  50.         $this->commandDate $commandDate;
  51.     }
  52.     /**
  53.      * @return mixed
  54.      */
  55.     public function getUser()
  56.     {
  57.         return $this->user;
  58.     }
  59.     /**
  60.      * @param mixed $user
  61.      */
  62.     public function setUser($user): void
  63.     {
  64.         $this->user $user;
  65.     }
  66.     /**
  67.      * @return string|null
  68.      */
  69.     public function getBilling(): ?string
  70.     {
  71.         return $this->billing;
  72.     }
  73.     /**
  74.      * @param string|null $billing
  75.      */
  76.     public function setBilling(?string $billing): void
  77.     {
  78.         $this->billing $billing;
  79.     }
  80. }