/** * @param ImportedPeriod $source * @param Periode $destination * @return mixed */ public function map($source, $destination) { $destination->setBeginning($source->getStart()); $destination->setEnding($source->getEnd()); $destination->setName($source->getLabel()); return $destination; }
/** * Remove guide * * @param Periode $periode */ public function removePeriode(Periode $periode) { $periode->setGuide(null); $this->periodes->removeElement($periode); }