src/Entity/CommissionShareRule.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommissionShareRuleRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Timestampable\Traits\TimestampableEntity;
  7. #[ORM\Entity(repositoryClassCommissionShareRuleRepository::class)]
  8. class CommissionShareRule
  9. {
  10.     use TimestampableEntity;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'commissionShareRulesTo')]
  16.     private ?User $toUser null;
  17.     #[ORM\Column]
  18.     private ?float $percent null;
  19.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  20.     private ?\DateTimeInterface $effectiveStartDate null;
  21.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  22.     private ?\DateTimeInterface $effectiveEndDate null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $customerNumber null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getToUser(): ?User
  30.     {
  31.         return $this->toUser;
  32.     }
  33.     public function setToUser(?User $toUser): static
  34.     {
  35.         $this->toUser $toUser;
  36.         return $this;
  37.     }
  38.     public function getPercent(): ?float
  39.     {
  40.         return $this->percent;
  41.     }
  42.     public function setPercent(float $percent): static
  43.     {
  44.         $this->percent $percent;
  45.         return $this;
  46.     }
  47.     public function getEffectiveStartDate(): ?\DateTimeInterface
  48.     {
  49.         return $this->effectiveStartDate;
  50.     }
  51.     public function setEffectiveStartDate(\DateTimeInterface $effectiveStartDate): static
  52.     {
  53.         $this->effectiveStartDate $effectiveStartDate;
  54.         return $this;
  55.     }
  56.     public function getEffectiveEndDate(): ?\DateTimeInterface
  57.     {
  58.         return $this->effectiveEndDate;
  59.     }
  60.     public function setEffectiveEndDate(\DateTimeInterface $effectiveEndDate): static
  61.     {
  62.         $this->effectiveEndDate $effectiveEndDate;
  63.         return $this;
  64.     }
  65.     public function getCustomerNumber(): ?string
  66.     {
  67.         return $this->customerNumber;
  68.     }
  69.     public function setCustomerNumber(string $customerNumber): static
  70.     {
  71.         $this->customerNumber $customerNumber;
  72.         return $this;
  73.     }
  74. }