<?php
namespace App\Entity\Export;
use App\Entity\Utilisateur\TypeUtilisateur;
use App\Entity\Utilisateur\Utilisateur;
use DateTime;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Export_Entity_exportable
*
* @ORM\Table()
* @Gedmo\SoftDeleteable(fieldName="dateSupp",timeAware=false)
* @ORM\Entity
*/
class Export_Entity_exportable
{
/**
* @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="namespace", type="string", length=255)
*/
private $namespace;
/**
* @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\ManyToOne(targetEntity="App\Entity\Utilisateur\TypeUtilisateur", inversedBy="entityExportable")
* @ORM\JoinColumn(nullable=true)
*/
private $typeUtilisateur;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="entityExportable")
* @ORM\JoinColumn(nullable=true)
*/
private $utilisateur;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Export\Export_champs_exportables", mappedBy="entityExportable")
*/
private $champsExportables;
/**
* toString
* @return string
*/
public function __toString()
{
return $this->getName();
}
public function getId(): int
{
return $this->id;
}
public function setName(string $name): Export_Entity_exportable
{
$this->name = $name;
return $this;
}
public function getName(): string
{
return $this->name;
}
public function __construct()
{
$this->champsExportables = new ArrayCollection();
}
public function setDateCreation(DateTime $dateCreation): Export_Entity_exportable
{
$this->dateCreation = $dateCreation;
return $this;
}
public function getDateCreation(): DateTime
{
return $this->dateCreation;
}
public function setDateMaj(?DateTime $dateMaj): Export_Entity_exportable
{
$this->dateMaj = $dateMaj;
return $this;
}
public function getDateMaj(): ?DateTime
{
return $this->dateMaj;
}
public function setDateSupp(?DateTime $dateSupp): Export_Entity_exportable
{
$this->dateSupp = $dateSupp;
return $this;
}
public function getDateSupp(): ?DateTime
{
return $this->dateSupp;
}
public function setTypeUtilisateur(?TypeUtilisateur $typeUtilisateur): Export_Entity_exportable
{
$this->typeUtilisateur = $typeUtilisateur;
return $this;
}
public function getTypeUtilisateur(): ?TypeUtilisateur
{
return $this->typeUtilisateur;
}
public function setUtilisateur(?Utilisateur $utilisateur): Export_Entity_exportable
{
$this->utilisateur = $utilisateur;
return $this;
}
public function getUtilisateur(): ?Utilisateur
{
return $this->utilisateur;
}
public function addChampsExportable(Export_Entity_exportable $champsExportables): Export_Entity_exportable
{
$this->champsExportables[] = $champsExportables;
return $this;
}
public function removeChampsExportable(Export_Entity_exportable $champsExportables)
{
$this->champsExportables->removeElement($champsExportables);
}
public function getChampsExportables(): Collection
{
return $this->champsExportables;
}
public function setNamespace(string $namespace): Export_Entity_exportable
{
$this->namespace = $namespace;
return $this;
}
public function getNamespace(): string
{
return $this->namespace;
}
}