Ejemplo n.º 1
0
 /**
  * @param VehicleDepot $vehicleDepot
  * @return VehicleDepotListDTO
  */
 public function toVehicleDepotListDTO(VehicleDepot $vehicleDepot)
 {
     $vehicleDepotListDTO = new VehicleDepotListDTO();
     $vehicleDepotListDTO->id = $vehicleDepot->getId();
     $vehicleDepotListDTO->name = $vehicleDepot->getName();
     $vehicleDepotListDTO->street = $vehicleDepot->getAddress()->getStreet();
     $vehicleDepotListDTO->city = $vehicleDepot->getAddress()->getCity();
     return $vehicleDepotListDTO;
 }