42 lines
762 B
PHP
42 lines
762 B
PHP
<?php
|
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* A medicine holder (titulaire of an AMM).
|
|
*/
|
|
#[ORM\Entity]
|
|
#[ApiResource]
|
|
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;
|
|
}
|
|
}
|