src/Entity/EmployeeContract.php line 10
<?phpnamespace App\Entity;use App\Repository\EmployeeContractRepository;use App\Trait\DateTrait;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: EmployeeContractRepository::class)]class EmployeeContract{use DateTrait{ DateTrait::__construct as dateConstruct;}#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'contracts')]#[ORM\JoinColumn(nullable: false)]private ?Employee $employee = null;#[ORM\Column(length: 50)]private ?string $type = null;#[ORM\Column]private ?float $salary = null;#[ORM\ManyToOne]#[ORM\JoinColumn(nullable: false)]private ?Currency $currency = null;#[ORM\ManyToOne]#[ORM\JoinColumn(nullable: false)]private ?Contact $contract = null;#[ORM\Column]private ?\DateTimeImmutable $startedAt = null;#[ORM\Column]private ?\DateTimeImmutable $finishedAt = null;public function __construct(){$this->dateConstruct();}public function getId(): ?int{return $this->id;}public function getEmployee(): ?Employee{return $this->employee;}public function setEmployee(?Employee $employee): static{$this->employee = $employee;return $this;}public function getType(): ?string{return $this->type;}public function setType(string $type): static{$this->type = $type;return $this;}public function getSalary(): ?float{return $this->salary;}public function setSalary(float $salary): static{$this->salary = $salary;return $this;}public function getCurrency(): ?Currency{return $this->currency;}public function setCurrency(?Currency $currency): static{$this->currency = $currency;return $this;}public function getContract(): ?Contact{return $this->contract;}public function setContract(?Contact $contract): static{$this->contract = $contract;return $this;}public function getStartedAt(): ?\DateTimeImmutable{return $this->startedAt;}public function setStartedAt(\DateTimeImmutable $startedAt): static{$this->startedAt = $startedAt;return $this;}public function getFinishedAt(): ?\DateTimeImmutable{return $this->finishedAt;}public function setFinishedAt(\DateTimeImmutable $finishedAt): static{$this->finishedAt = $finishedAt;return $this;}}