Beispiel #1
0
 private function mapearNotificaciones(Notificacion $notificacion, array $props)
 {
     if (array_key_exists('id', $props)) {
         $notificacion->setId($props['id']);
     }
     if (array_key_exists('asunto', $props)) {
         $notificacion->setAsunto($props['asunto']);
     }
     if (array_key_exists('mensaje', $props)) {
         $notificacion->setMensaje($props['mensaje']);
     }
     if (array_key_exists('destino', $props)) {
         $notificacion->setDestino($props['destino']);
     }
     if (array_key_exists('fecha_evento', $props)) {
         $notificacion->setFecha_evento($props['fecha_evento']);
     }
     if (array_key_exists('hora', $props)) {
         $notificacion->setHora($props['hora']);
     }
     if (array_key_exists('fecha_ingreso', $props)) {
         $notificacion->setFecha_ingreso($props['fecha_ingreso']);
     }
 }