caterpillar/api/api/src/Entity/MedicineHolder.php

42 lines
778 B
PHP

<?php
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Link;
use Doctrine\ORM\Mapping as ORM;
/**
* A medicine holder (titulaire of an AMM).
*/
#[ORM\Entity]
class MedicineHolder
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
/**
* This CIS (Code Identifiant de Spécialité) id is the unique identifier of the medicine.
*/
#[ORM\Column(type: 'string', length: 11)]
private ?string $CIS = null;
#[ORM\Column]
private string $name = '';
public function getId(): ?int
{
return $this->id;
}
public function getCIS(): ?string
{
return $this->CIS;
}
public function getName(): ?string
{
return $this->name;
}
}