/
forest-lynx
/
project
Обзор
Документация
Войти
/
forest-lynx
/
project
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Entity/Employment.php
96 строк
2 KB
forest-lynx
init
04 дек 2024, 10:44
04 дек 2024, 10:44
f4ceba2
Код
Авторство
О чём код?
<?php namespace App\Entity; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; use App\Repository\EmploymentRepository; #[ORM\Entity(repositoryClass: EmploymentRepository::class)] class Employment { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'employments', fetch: 'EAGER')] private ?Developer $developer = null; #[ORM\ManyToOne(inversedBy: 'employments', fetch: 'EAGER')] private ?Position $position = null; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?\DateTimeInterface $dateFrom = null; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?\DateTimeInterface $dateTo = null; #[ORM\Column(length: 20, nullable: true)] private ?string $orderNumber = null; public function getId(): ?int { return $this->id; } public function getDeveloper(): ?Developer { return $this->developer; } public function setDeveloper(?Developer $developer): static { $this->developer = $developer; return $this; } public function getPosition(): ?Position { return $this->position; } public function setPosition(?Position $position): static { $this->position = $position; return $this; } public function getDateFrom(): ?\DateTimeInterface { return $this->dateFrom; } public function setDateFrom(\DateTimeInterface $dateFrom): static { $this->dateFrom = $dateFrom; return $this; } public function getDateTo(): ?\DateTimeInterface { return $this->dateTo; } public function setDateTo(?\DateTimeInterface $dateTo): static { $this->dateTo = $dateTo; return $this; } public function getOrderNumber(): ?string { return $this->orderNumber; } public function setOrderNumber(?string $orderNumber): static { $this->orderNumber = $orderNumber; return $this; } }