@@ -8,19 +8,19 @@ |
||
| 8 | 8 | |
| 9 | 9 | require_once __DIR__ . '/vendor/autoload.php'; |
| 10 | 10 | |
| 11 | -use src\{CuestionarioEts,AcontecimientoTraumaticoSevero, Afectacion, EsfuerzoPorEvitarCircunstanciasParecidasOAsociadasAlAcontecimiento, RecuerdosPersistentesSobreElAcontecimiento}; |
|
| 11 | +use src\{CuestionarioEts, AcontecimientoTraumaticoSevero, Afectacion, EsfuerzoPorEvitarCircunstanciasParecidasOAsociadasAlAcontecimiento, RecuerdosPersistentesSobreElAcontecimiento}; |
|
| 12 | 12 | |
| 13 | 13 | use src\CrearCuestionarioEts; |
| 14 | 14 | |
| 15 | 15 | use src\CambiarValoresParaBaseDeDatosCuestionarioEts; |
| 16 | 16 | |
| 17 | -$ets = new AcontecimientoTraumaticoSevero('No','No','No','No','No','No'); |
|
| 17 | +$ets = new AcontecimientoTraumaticoSevero('No', 'No', 'No', 'No', 'No', 'No'); |
|
| 18 | 18 | |
| 19 | 19 | $cuestionario = new CuestionarioEts( |
| 20 | 20 | $ets, |
| 21 | - new RecuerdosPersistentesSobreElAcontecimiento($ets,'Sí', 'No'), |
|
| 22 | - new EsfuerzoPorEvitarCircunstanciasParecidasOAsociadasAlAcontecimiento($ets,'Sí','No','No','No','No','No','No'), |
|
| 23 | - new Afectacion($ets,'Sí','No','No','No','No') |
|
| 21 | + new RecuerdosPersistentesSobreElAcontecimiento($ets, 'Sí', 'No'), |
|
| 22 | + new EsfuerzoPorEvitarCircunstanciasParecidasOAsociadasAlAcontecimiento($ets, 'Sí', 'No', 'No', 'No', 'No', 'No', 'No'), |
|
| 23 | + new Afectacion($ets, 'Sí', 'No', 'No', 'No', 'No') |
|
| 24 | 24 | ); |
| 25 | 25 | echo '<h1>Crear Cuestionario a partir de forma regular</h1>'; |
| 26 | 26 | echo '<pre>'; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $resultado = 2; |
| 35 | 35 | |
| 36 | - if($valor == 'No') |
|
| 36 | + if ($valor == 'No') |
|
| 37 | 37 | { |
| 38 | 38 | $resultado = 1; |
| 39 | 39 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | { |
| 46 | 46 | $resultado = 'Sí'; |
| 47 | 47 | |
| 48 | - if($valor == 1) |
|
| 48 | + if ($valor == 1) |
|
| 49 | 49 | { |
| 50 | 50 | $resultado = 'No'; |
| 51 | 51 | } |