<?php
namespace App\Entity;
/**
* MateriauPrincipal.
*/
class MateriauPrincipal
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $titre;
/**
* @var string
*/
private $description;
/**
* @var int
*/
private $rang;
/**
* @var int
*/
private $idBdOrigine;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $BatimentMaconnerie;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $BatimentOssature;
/**
* Constructor.
*/
public function __construct()
{
$this->BatimentMaconnerie = new \Doctrine\Common\Collections\ArrayCollection();
$this->BatimentOssature = 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 MateriauPrincipal
*/
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 MateriauPrincipal
*/
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 MateriauPrincipal
*/
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 MateriauPrincipal
*/
public function setRang($rang)
{
$this->rang = $rang;
return $this;
}
/**
* Get rang.
*
* @return int
*/
public function getRang()
{
return $this->rang;
}
/**
* Set idBdOrigine.
*
* @param int $idBdOrigine
*
* @return MateriauPrincipal
*/
public function setIdBdOrigine($idBdOrigine)
{
$this->idBdOrigine = $idBdOrigine;
return $this;
}
/**
* Get idBdOrigine.
*
* @return int
*/
public function getIdBdOrigine()
{
return $this->idBdOrigine;
}
/**
* Add batimentMaconnerie.
*
* @param \App\Entity\Batiment $batimentMaconnerie
*
* @return MateriauPrincipal
*/
public function addBatimentMaconnerie(Batiment $batimentMaconnerie)
{
$this->BatimentMaconnerie[] = $batimentMaconnerie;
return $this;
}
/**
* Remove batimentMaconnerie.
*
* @param \App\Entity\Batiment $batimentMaconnerie
*/
public function removeBatimentMaconnerie(Batiment $batimentMaconnerie)
{
$this->BatimentMaconnerie->removeElement($batimentMaconnerie);
}
/**
* Get batimentMaconnerie.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getBatimentMaconnerie()
{
return $this->BatimentMaconnerie;
}
/**
* Add batimentOssature.
*
* @param \App\Entity\Batiment $batimentOssature
*
* @return MateriauPrincipal
*/
public function addBatimentOssature(Batiment $batimentOssature)
{
$this->BatimentOssature[] = $batimentOssature;
return $this;
}
/**
* Remove batimentOssature.
*
* @param \App\Entity\Batiment $batimentOssature
*/
public function removeBatimentOssature(Batiment $batimentOssature)
{
$this->BatimentOssature->removeElement($batimentOssature);
}
/**
* Get batimentOssature.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getBatimentOssature()
{
return $this->BatimentOssature;
}
}