src/Entity/EmployeeRepCode.php line 13
<?phpnamespace App\Entity;use App\Repository\EmployeeRepCodeRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;#[ORM\Entity(repositoryClass: EmployeeRepCodeRepository::class)]#[ORM\Index(columns: ["rep_code", "employee_id", "effective_start_date", "effective_end_date"], name: "idx_employee_rep_code")]#[ORM\Index(columns: ['rep_code'], name: 'idx_employee_rep_code_only')]class EmployeeRepCode{use TimestampableEntity;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $repCode = null;#[ORM\Column(length: 255)]private ?string $employeeID = null;#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]private ?\DateTimeInterface $effectiveStartDate = null;#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]private ?\DateTimeInterface $effectiveEndDate = null;#[ORM\ManyToOne(inversedBy: 'employeeRepCodes', fetch: 'EAGER')]private ?User $user = null;public function getId(): ?int{return $this->id;}public function getRepCode(): ?string{return $this->repCode;}public function setRepCode(string $repCode): self{$this->repCode = $repCode;return $this;}public function getEmployeeID(): ?string{return $this->employeeID;}public function setEmployeeID(string $employeeID): self{$this->employeeID = $employeeID;return $this;}public function getEffectiveStartDate(): ?\DateTimeInterface{return $this->effectiveStartDate;}public function setEffectiveStartDate(?\DateTimeInterface $effectiveStartDate): static{$this->effectiveStartDate = $effectiveStartDate;return $this;}public function getEffectiveEndDate(): ?\DateTimeInterface{return $this->effectiveEndDate;}public function setEffectiveEndDate(?\DateTimeInterface $effectiveEndDate): static{$this->effectiveEndDate = $effectiveEndDate;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): static{$this->user = $user;return $this;}}