Ejemplo n.º 1
0
 /**
  * @param WorkingMonth $workingMonth
  * @return MonthlyPlanListDTO
  */
 private function workingMonthToListDTO(WorkingMonth $workingMonth)
 {
     $dto = new MonthlyPlanListDTO();
     $dto->id = $workingMonth->getId();
     $dto->date = $workingMonth->getDateString();
     $dto->status = $workingMonth->getStatusAsTransString();
     return $dto;
 }
 /**
  * @param WorkingMonth $workingMonth
  * @return ProductionPlanListDTO
  */
 public function workingMonthToListDTO(WorkingMonth $workingMonth)
 {
     $dto = new ProductionPlanListDTO();
     $dto->id = $workingMonth->getId();
     $dto->date = $workingMonth->getDateString();
     return $dto;
 }