/** * @param Recolte $recolte * @return string */ private function getToStringRecolte(Recolte $recolte) { $dateFormater = $this->getDateFormatter(); if (!is_null($recolte->getEventdate())) { return sprintf('%s %s', $dateFormater->format($recolte->getEventdate()), $recolte->getRecordedby()); } else { return sprintf('%s', $recolte->getRecordedby()); } }
private function setEmptyClasses() { $emptyStratigraphy = new Stratigraphy(); $this->arrayEmptyClasses['Stratigraphy'] = $emptyStratigraphy->toArray(); $emptyRecolte = new Recolte(); $this->arrayEmptyClasses['Recolte'] = $emptyRecolte->toArray(); $emptyLocalisation = new Localisation(); $this->arrayEmptyClasses['Localisation'] = $emptyLocalisation->toArray(); }