| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?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\ManyToOne(targetEntity=Access::class, inversedBy="personActivity")
- */
- private $access;
- /**
- * @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 getAccess(): ?Access
- {
- return $this->access;
- }
- public function setAccess(?Access $access): self
- {
- $this->access = $access;
- return $this;
- }
- 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;
- }
- }
|