function getTotalRutinasByIdSocio($idSocio) { if ($idSocio != NULL) { if ($idSocio != 0) { $rutina = new Rutina(); $response = $rutina->getTotalRutinasByIdSocio($idSocio); } else { $response["success"] = 6; $response["message"] = 'El id del socio debe ser diferente de cero o cero'; } } else { $response["success"] = 5; $response["message"] = 'El id del socio debe ser diferente de NULO o cero'; } return $response; }