<?php
namespace App\Entity;
use App\Repository\DatedocumentRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DatedocumentRepository::class)
*/
class Datedocument
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $titre;
/**
* @ORM\Column(type="integer")
*/
private $typedocument;
/**
* @ORM\ManyToOne(targetEntity=TypeGuide::class, inversedBy="datedocuments")
* @ORM\JoinColumn(nullable=false)
*/
private $typeplateform;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datemodification;
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getTypedocument(): ?int
{
return $this->typedocument;
}
public function setTypedocument(int $typedocument): self
{
$this->typedocument = $typedocument;
return $this;
}
public function getTypeplateform(): ?TypeGuide
{
return $this->typeplateform;
}
public function setTypeplateform(?TypeGuide $typeplateform): self
{
$this->typeplateform = $typeplateform;
return $this;
}
public function getDatemodification(): ?\DateTimeInterface
{
return $this->datemodification;
}
public function setDatemodification(?\DateTimeInterface $datemodification): self
{
$this->datemodification = $datemodification;
return $this;
}
}