<?php
namespace App\Entity\Export;
use App\Entity\Utilisateur\TypeUtilisateur;
use App\Entity\Utilisateur\Utilisateur;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* Export_champs_exportables
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="App\Repository\Export\Export_champs_exportablesRepository")
*/
class Export_champs_exportables
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(name="name", type="string", length=255)
*/
private $name;
/**
* @ORM\Column(name="dateCreation", type="datetime")
*/
private $dateCreation;
/**
* @ORM\Column(name="dateMaj", type="datetime", nullable=true)
*/
private $dateMaj;
/**
* @ORM\Column(name="dateSupp", type="datetime", nullable=true)
*/
private $dateSupp;
/**
* @ORM\Column(name="variable", type="string", length=255, nullable=true)
*/
private $variable;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\TypeUtilisateur", inversedBy="champsExportables")
* @ORM\JoinColumn(nullable=true)
*/
private $typeUtilisateur;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="champsExportables")
* @ORM\JoinColumn(nullable=true)
*/
private $utilisateur;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Export\Export_Entity_exportable", inversedBy="champsExportables")
* @ORM\JoinColumn(nullable=true)
*/
private $entityExportable;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Export\Export", inversedBy="champsAexporter")
* @ORM\JoinColumn(nullable=true)
*/
private $export;
public function __construct(){
$this->dateCreation = new DateTime();
}
public function getId(): int
{
return $this->id;
}
public function setName(string $name): Export_champs_exportables
{
$this->name = $name;
return $this;
}
public function getName(): string
{
return $this->name;
}
public function setDateCreation(DateTime $dateCreation): Export_champs_exportables
{
$this->dateCreation = $dateCreation;
return $this;
}
public function getDateCreation(): DateTime
{
return $this->dateCreation;
}
public function setDateMaj(?DateTime $dateMaj): Export_champs_exportables
{
$this->dateMaj = $dateMaj;
return $this;
}
public function getDateMaj(): ?DateTime
{
return $this->dateMaj;
}
public function setDateSupp(?DateTime $dateSupp): Export_champs_exportables
{
$this->dateSupp = $dateSupp;
return $this;
}
public function getDateSupp(): ?DateTime
{
return $this->dateSupp;
}
public function setMethod(string $method): Export_champs_exportables
{
$this->method = $method;
return $this;
}
public function getMethod(): string
{
return $this->method;
}
public function setVariable(?string $variable): Export_champs_exportables
{
$this->variable = $variable;
return $this;
}
public function getVariable(): ?string
{
return $this->variable;
}
public function setTypeUtilisateur(?TypeUtilisateur $typeUtilisateur): Export_champs_exportables
{
$this->typeUtilisateur = $typeUtilisateur;
return $this;
}
public function getTypeUtilisateur(): ?TypeUtilisateur
{
return $this->typeUtilisateur;
}
public function setUtilisateur(?Utilisateur $utilisateur): Export_champs_exportables
{
$this->utilisateur = $utilisateur;
return $this;
}
public function getUtilisateur(): ?Utilisateur
{
return $this->utilisateur;
}
public function setEntityExportable(?Export_Entity_exportable $entityExportable): Export_champs_exportables
{
$this->entityExportable = $entityExportable;
return $this;
}
public function getEntityExportable(): ?Export_Entity_exportable
{
return $this->entityExportable;
}
public function setExport(?Export $export): Export_champs_exportables
{
$this->export = $export;
return $this;
}
public function getExport(): ?Export
{
return $this->export;
}
}