src/Entity/TrueUp.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TrueUpRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. #[ORM\Entity(repositoryClassTrueUpRepository::class)]
  7. class TrueUp
  8. {
  9.     use TimestampableEntity;
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?User $user null;
  17.     #[ORM\Column]
  18.     private ?int $amtInPennies null;
  19.     #[ORM\ManyToOne]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?PaymentPeriod $period null;
  22.     #[ORM\ManyToOne]
  23.     private ?AggregatedCommissions $aggregatedCommissions null;
  24.     #[ORM\ManyToOne(inversedBy'trueUps')]
  25.     private ?AggregatedTrueUp $aggregatedTrueUp null;
  26.     #[ORM\ManyToOne(inversedBy'trueUps')]
  27.     private ?TotalDue $totalDue null;
  28.     #[ORM\ManyToOne(inversedBy'trueUps')]
  29.     #[ORM\JoinColumn(nullablefalse)]
  30.     private ?UserPaymentPeriod $userPaymentPeriod null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getUser(): ?User
  36.     {
  37.         return $this->user;
  38.     }
  39.     public function setUser(?User $user): self
  40.     {
  41.         $this->user $user;
  42.         return $this;
  43.     }
  44.     public function getAmtInPennies(): ?int
  45.     {
  46.         return $this->amtInPennies;
  47.     }
  48.     public function setAmtInPennies(int $amtInPennies): self
  49.     {
  50.         $this->amtInPennies $amtInPennies;
  51.         return $this;
  52.     }
  53.     public function getPeriod(): ?PaymentPeriod
  54.     {
  55.         return $this->period;
  56.     }
  57.     public function setPeriod(?PaymentPeriod $period): self
  58.     {
  59.         $this->period $period;
  60.         return $this;
  61.     }
  62.     public function getAggregatedCommissions(): ?AggregatedCommissions
  63.     {
  64.         return $this->aggregatedCommissions;
  65.     }
  66.     public function setAggregatedCommissions(?AggregatedCommissions $aggregatedCommissions): self
  67.     {
  68.         $this->aggregatedCommissions $aggregatedCommissions;
  69.         return $this;
  70.     }
  71.     public function getAggregatedTrueUp(): ?AggregatedTrueUp
  72.     {
  73.         return $this->aggregatedTrueUp;
  74.     }
  75.     public function setAggregatedTrueUp(?AggregatedTrueUp $aggregatedTrueUp): self
  76.     {
  77.         $this->aggregatedTrueUp $aggregatedTrueUp;
  78.         return $this;
  79.     }
  80.     public function getTotalDue(): ?TotalDue
  81.     {
  82.         return $this->totalDue;
  83.     }
  84.     public function setTotalDue(?TotalDue $totalDue): self
  85.     {
  86.         $this->totalDue $totalDue;
  87.         return $this;
  88.     }
  89.     public function getUserPaymentPeriod(): ?UserPaymentPeriod
  90.     {
  91.         return $this->userPaymentPeriod;
  92.     }
  93.     public function setUserPaymentPeriod(?UserPaymentPeriod $userPaymentPeriod): self
  94.     {
  95.         $this->userPaymentPeriod $userPaymentPeriod;
  96.         return $this;
  97.     }
  98. }