/** * Ajout d'un materiel à un centre. * * @param SDIS62\Core\Ops\Entity\Centre $centre * @param string $name */ public function __construct(Centre $centre, $name) { $this->name = $name; $this->centre = $centre; $this->centre->addMateriel($this); $this->engagements = new ArrayCollection(); $this->statut = Statut::DISPONIBLE(); }
/** * Ajout d'un pompier. * * @param string $name * @param string $matricule * @param SDIS62\Core\Ops\Entity\Centre $centre */ public function __construct($name, $matricule, Centre $centre) { $this->matricule = $matricule; $this->setName($name); $this->setCentre($centre); $this->engagements = new ArrayCollection(); $this->plages_horaires = new ArrayCollection(); $this->statut = Statut::DISPONIBLE(); $this->is_pro = true; }