<?php
namespace App\Entity;
use App\Repository\HistoriqueMajRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=HistoriqueMajRepository::class)
*/
class HistoriqueMaj
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime")
*/
private $datetime;
/**
* @ORM\ManyToOne(targetEntity=IctusPharmacie::class, inversedBy="historiqueMajs")
* @ORM\JoinColumn(nullable=false)
*/
private $pharmacie;
public function getId(): ?int
{
return $this->id;
}
public function getDatetime(): ?\DateTimeInterface
{
return $this->datetime;
}
public function setDatetime(\DateTimeInterface $datetime): self
{
$this->datetime = $datetime;
return $this;
}
public function getPharmacie(): ?IctusPharmacie
{
return $this->pharmacie;
}
public function setPharmacie(?IctusPharmacie $pharmacie): self
{
$this->pharmacie = $pharmacie;
return $this;
}
}