src/Entity/SplitOverride.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SplitOverrideRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Timestampable\Traits\TimestampableEntity;
  7. #[ORM\Entity(repositoryClassSplitOverrideRepository::class)]
  8. #[ORM\Index(columns: ["rep_code""customer_id""effective_start_date""effective_end_date"], name"idx_split_override")]
  9. class SplitOverride
  10. {
  11.     use TimestampableEntity;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $repCode null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $customerID null;
  20.     #[ORM\Column]
  21.     private ?int $splitPercentage null;
  22.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  23.     private ?\DateTimeInterface $effectiveStartDate null;
  24.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  25.     private ?\DateTimeInterface $effectiveEndDate null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getRepCode(): ?string
  31.     {
  32.         return $this->repCode;
  33.     }
  34.     public function setRepCode(string $repCode): self
  35.     {
  36.         $this->repCode $repCode;
  37.         return $this;
  38.     }
  39.     public function getCustomerID(): ?string
  40.     {
  41.         return $this->customerID;
  42.     }
  43.     public function setCustomerID(string $customerID): self
  44.     {
  45.         $this->customerID $customerID;
  46.         return $this;
  47.     }
  48.     public function getSplitPercentage(): ?int
  49.     {
  50.         return $this->splitPercentage;
  51.     }
  52.     public function setSplitPercentage(int $splitPercentage): self
  53.     {
  54.         $this->splitPercentage $splitPercentage;
  55.         return $this;
  56.     }
  57.     public function getEffectiveStartDate(): ?\DateTimeInterface
  58.     {
  59.         return $this->effectiveStartDate;
  60.     }
  61.     public function setEffectiveStartDate(?\DateTimeInterface $effectiveStartDate): static
  62.     {
  63.         $this->effectiveStartDate $effectiveStartDate;
  64.         return $this;
  65.     }
  66.     public function getEffectiveEndDate(): ?\DateTimeInterface
  67.     {
  68.         return $this->effectiveEndDate;
  69.     }
  70.     public function setEffectiveEndDate(?\DateTimeInterface $effectiveEndDate): static
  71.     {
  72.         $this->effectiveEndDate $effectiveEndDate;
  73.         return $this;
  74.     }
  75. }