| 
                    1
                 | 
                                    
                                                     | 
                
                 | 
                <?php declare(strict_types=1);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    2
                 | 
                                    
                                                     | 
                
                 | 
                namespace src\factory\sustancias;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    3
                 | 
                                    
                                                     | 
                
                 | 
                 | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    4
                 | 
                                    
                                                     | 
                
                 | 
                use src\FactoryClassInterface;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    5
                 | 
                                    
                                                     | 
                
                 | 
                use src\preguntas\Consume;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    6
                 | 
                                    
                                                     | 
                
                 | 
                use src\preguntas\Pregunta;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    7
                 | 
                                    
                                                     | 
                
                 | 
                use src\preguntas\PreguntaUno;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    8
                 | 
                                    
                                                     | 
                
                 | 
                use src\sustancias\Alucinogenos as SustanciasAlucinogenos;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    9
                 | 
                                    
                                                     | 
                
                 | 
                use src\valores\Valores;  | 
            
            
                                                                                                            
                                                                
            
                                    
            
            
                | 
                    10
                 | 
                                    
                                                     | 
                
                 | 
                 | 
            
            
                                                                        
                            
            
                                    
            
            
                | 
                    11
                 | 
                                    
                                                     | 
                
                 | 
                class Alucinogenos implements FactoryClassInterface  | 
            
            
                                                                        
                            
            
                                    
            
            
                | 
                    12
                 | 
                                    
                                                     | 
                
                 | 
                { | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    13
                 | 
                                    
                             11                          | 
                
                 | 
                    public function crear(array $array): SustanciasAlucinogenos  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    14
                 | 
                                    
                                                     | 
                
                 | 
                    { | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    15
                 | 
                                    
                             11                          | 
                
                 | 
                        $valores = new Valores();  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    16
                 | 
                                    
                                                     | 
                
                 | 
                 | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    17
                 | 
                                    
                             11                          | 
                
                 | 
                        $datosPregunta1 = $valores->_preguntaUno;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    18
                 | 
                                    
                             11                          | 
                
                 | 
                        $datosPregunta2 = $valores->_preguntaDos;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    19
                 | 
                                    
                             11                          | 
                
                 | 
                        $datosPregunta3 = $valores->_preguntaTres;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    20
                 | 
                                    
                             11                          | 
                
                 | 
                        $datosPregunta4 = $valores->_preguntaCuatro;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    21
                 | 
                                    
                             11                          | 
                
                 | 
                        $datosPregunta5 = $valores->_preguntaCinco;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    22
                 | 
                                    
                             11                          | 
                
                 | 
                        $datosPregunta6 = $valores->_preguntaSeisSiete;  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    23
                 | 
                                    
                                                     | 
                
                 | 
                 | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    24
                 | 
                                    
                             11                          | 
                
                 | 
                        $p1 = new PreguntaUno($array['alucinogenos1'], $datosPregunta1);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    25
                 | 
                                    
                             11                          | 
                
                 | 
                        $consume = new Consume($p1);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    26
                 | 
                                    
                             11                          | 
                
                 | 
                        $p2 = new Pregunta($array['alucinogenos2'], $datosPregunta2, $consume);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    27
                 | 
                                    
                             11                          | 
                
                 | 
                        $p3 = new Pregunta($array['alucinogenos3'], $datosPregunta3, $consume);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    28
                 | 
                                    
                             11                          | 
                
                 | 
                        $p4 = new Pregunta($array['alucinogenos4'], $datosPregunta4, $consume);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    29
                 | 
                                    
                             11                          | 
                
                 | 
                        $p5 = new Pregunta($array['alucinogenos5'], $datosPregunta5, $consume);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    30
                 | 
                                    
                             11                          | 
                
                 | 
                        $p6 = new Pregunta($array['alucinogenos6'], $datosPregunta6, $consume);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    31
                 | 
                                    
                             11                          | 
                
                 | 
                        $p7 = new Pregunta($array['alucinogenos7'], $datosPregunta6, $consume);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    32
                 | 
                                    
                                                     | 
                
                 | 
                 | 
            
            
                                                                                                            
                                                                
            
                                    
            
            
                | 
                    33
                 | 
                                    
                             11                          | 
                
                 | 
                        return new SustanciasAlucinogenos($p1, $p2, $p3, $p4, $p5, $p6, $p7);  | 
            
            
                                                                                                            
                            
            
                                    
            
            
                | 
                    34
                 | 
                                    
                                                     | 
                
                 | 
                    }  | 
            
            
                                                                                                            
                                                                
            
                                    
            
            
                | 
                    35
                 | 
                                    
                                                     | 
                
                 | 
                }  | 
            
            
                                                        
            
                                    
            
            
                | 
                    36
                 | 
                                    
                                                     | 
                
                 | 
                 |