<?php
namespace App\Entity;
/**
* TypeImport.
*/
class TypeImport
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $titre;
/**
* @var string
*/
private $description;
/**
* @var int
*/
private $rang;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Import;
/**
* Constructor.
*/
public function __construct()
{
$this->Import = new \Doctrine\Common\Collections\ArrayCollection();
}
public function __toString()
{
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code.
*
* @param string $code
*
* @return TypeImport
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set titre.
*
* @param string $titre
*
* @return TypeImport
*/
public function setTitre($titre)
{
$this->titre = $titre;
return $this;
}
/**
* Get titre.
*
* @return string
*/
public function getTitre()
{
return $this->titre;
}
/**
* Set description.
*
* @param string $description
*
* @return TypeImport
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set rang.
*
* @param int $rang
*
* @return TypeImport
*/
public function setRang($rang)
{
$this->rang = $rang;
return $this;
}
/**
* Get rang.
*
* @return int
*/
public function getRang()
{
return $this->rang;
}
/**
* Add import.
*
* @param \App\Entity\Import $import
*
* @return TypeImport
*/
public function addImport(Import $import)
{
$this->Import[] = $import;
return $this;
}
/**
* Remove import.
*
* @param \App\Entity\Import $import
*/
public function removeImport(Import $import)
{
$this->Import->removeElement($import);
}
/**
* Get import.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getImport()
{
return $this->Import;
}
}