<?php
namespace App\Entity;
/**
* AnneeConstruction.
*/
class AnneeConstruction
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $titre;
/**
* @var string
*/
private $description;
/**
* @var int
*/
private $idBdOrigine;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $Batiment;
/**
* Constructor.
*/
public function __construct()
{
$this->Batiment = 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 AnneeConstruction
*/
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 AnneeConstruction
*/
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 AnneeConstruction
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set idBdOrigine.
*
* @param int $idBdOrigine
*
* @return AnneeConstruction
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Add batiment.
*
* @param \App\Entity\Batiment $batiment
*
* @return AnneeConstruction
*/
public function addBatiment(Batiment $batiment)
{
$this->Batiment[] = $batiment;
return $this;
}
/**
* Remove batiment.
*
* @param \App\Entity\Batiment $batiment
*/
public function removeBatiment(Batiment $batiment)
{
$this->Batiment->removeElement($batiment);
}
/**
* Get batiment.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getBatiment()
{
return $this->Batiment;
}
/**
* @var int
*/
private $rang;
/**
* Set rang.
*
* @param int $rang
*
* @return AnneeConstruction
*/
public function setRang($rang)
{
$this->rang = $rang;
return $this;
}
/**
* Get rang.
*
* @return int
*/
public function getRang()
{
return $this->rang;
}
}