| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Access;
- use ApiPlatform\Core\Annotation\ApiResource;
- use App\Repository\Access\OrganizationFunctionRepository;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Fonction d'un Access dans une Organization sur une période donnée
- *
- * @ApiResource()
- * @ORM\Entity(repositoryClass=OrganizationFunctionRepository::class)
- */
- class OrganizationFunction
- {
- /**
- * @ORM\Id
- * @ORM\GeneratedValue
- * @ORM\Column(type="integer")
- */
- private $id;
- /**
- * @ORM\Column(type="date")
- */
- private $startDate;
- /**
- * @ORM\Column(type="date", nullable=true)
- */
- private $endDate;
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- private $functionComplement;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function getStartDate(): ?\DateTimeInterface
- {
- return $this->startDate;
- }
- public function setStartDate(\DateTimeInterface $startDate): self
- {
- $this->startDate = $startDate;
- return $this;
- }
- public function getEndDate(): ?\DateTimeInterface
- {
- return $this->endDate;
- }
- public function setEndDate(?\DateTimeInterface $endDate): self
- {
- $this->endDate = $endDate;
- return $this;
- }
- public function getFunctionComplement(): ?string
- {
- return $this->functionComplement;
- }
- public function setFunctionComplement(?string $functionComplement): self
- {
- $this->functionComplement = $functionComplement;
- return $this;
- }
- }
|