<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
/**
* MateriauMobilier.
*/
class MateriauMobilier
{
/**
* @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 $ContenantMobilier;
/**
* Constructor.
*/
public function __construct()
{
$this->ContenantMobilier = new \Doctrine\Common\Collections\ArrayCollection();
$this->ContenantMobilierPieceMesure = new ArrayCollection();
}
public function __toString()
{
return $this->titre;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set code.
*
* @param string $code
*
* @return MateriauMobilier
*/
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 MateriauMobilier
*/
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 MateriauMobilier
*/
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 MateriauMobilier
*/
public function setRang($rang)
{
$this->rang = $rang;
return $this;
}
/**
* Get rang.
*
* @return int
*/
public function getRang()
{
return $this->rang;
}
/**
* Add contenantMobilier.
*
* @param \App\Entity\ContenantMobilier $contenantMobilier
*
* @return MateriauMobilier
*/
public function addContenantMobilier(ContenantMobilier $contenantMobilier)
{
$this->ContenantMobilier[] = $contenantMobilier;
return $this;
}
/**
* Remove contenantMobilier.
*
* @param \App\Entity\ContenantMobilier $contenantMobilier
*/
public function removeContenantMobilier(ContenantMobilier $contenantMobilier)
{
$this->ContenantMobilier->removeElement($contenantMobilier);
}
/**
* Get contenantMobilier.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getContenantMobilier()
{
return $this->ContenantMobilier;
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $ContenantMobilierPieceMesure;
/**
* Add contenantMobilierPieceMesure.
*
* @param \App\Entity\ContenantMobilierPieceMesure $contenantMobilierPieceMesure
*
* @return MateriauMobilier
*/
public function addContenantMobilierPieceMesure(ContenantMobilierPieceMesure $contenantMobilierPieceMesure)
{
$this->ContenantMobilierPieceMesure[] = $contenantMobilierPieceMesure;
return $this;
}
/**
* Remove contenantMobilierPieceMesure.
*
* @param \App\Entity\ContenantMobilierPieceMesure $contenantMobilierPieceMesure
*/
public function removeContenantMobilierPieceMesure(ContenantMobilierPieceMesure $contenantMobilierPieceMesure)
{
$this->ContenantMobilierPieceMesure->removeElement($contenantMobilierPieceMesure);
}
/**
* Get contenantMobilierPieceMesure.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getContenantMobilierPieceMesure()
{
return $this->ContenantMobilierPieceMesure;
}
}