| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?php
- namespace App\Entity\Organization;
- use ApiPlatform\Core\Annotation\ApiResource;
- use App\Entity\Access\Access;
- use App\Repository\Organization\OrganizationLicenceRepository;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ApiResource()
- * @ORM\Entity(repositoryClass=OrganizationLicenceRepository::class)
- */
- class OrganizationLicence
- {
- /**
- * @ORM\Id
- * @ORM\GeneratedValue
- * @ORM\Column(type="integer")
- */
- private $id;
- /**
- * @ORM\ManyToOne(targetEntity=Organization::class, inversedBy="organizationLicences")
- * @ORM\JoinColumn(nullable=false)
- */
- private $organization;
- /**
- * @ORM\ManyToOne(targetEntity=Access::class, inversedBy="organizationLicences")
- * @ORM\JoinColumn(nullable=false)
- */
- private $licensee;
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- private $licenceNumber;
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- private $categorie;
- /**
- * @ORM\Column(type="date", nullable=true)
- */
- private $validityDate;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function getOrganization(): ?Organization
- {
- return $this->organization;
- }
- public function setOrganization(?Organization $organization): self
- {
- $this->organization = $organization;
- return $this;
- }
- public function getLicensee(): ?Access
- {
- return $this->licensee;
- }
- public function setLicensee(?Access $licensee): self
- {
- $this->licensee = $licensee;
- return $this;
- }
- public function getLicenceNumber(): ?string
- {
- return $this->licenceNumber;
- }
- public function setLicenceNumber(?string $licenceNumber): self
- {
- $this->licenceNumber = $licenceNumber;
- return $this;
- }
- public function getCategorie(): ?string
- {
- return $this->categorie;
- }
- public function setCategorie(?string $categorie): self
- {
- $this->categorie = $categorie;
- return $this;
- }
- public function getValidityDate(): ?\DateTimeInterface
- {
- return $this->validityDate;
- }
- public function setValidityDate(?\DateTimeInterface $validityDate): self
- {
- $this->validityDate = $validityDate;
- return $this;
- }
- }
|