Tabaco   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 110
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 19
c 1
b 0
f 0
dl 0
loc 110
ccs 20
cts 20
cp 1
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A preguntaCuatro() 0 3 1
A preguntaTres() 0 3 1
A preguntaSeis() 0 3 1
A __construct() 0 14 1
A preguntaDos() 0 3 1
A preguntaUno() 0 3 1
A preguntaSiete() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace src\sustancias;
4
5
use src\interfaces\PreguntaInterface;
6
7
/**
8
 * Clase Tabaco
9
 */
10
class Tabaco
11
{
12
    /**
13
     *
14
     * @var PreguntaInterface
15
     */
16
    private PreguntaInterface $_preguntaUno;
17
    /**
18
     *
19
     * @var PreguntaInterface
20
     */
21
    private PreguntaInterface $_preguntaDos;
22
    /**
23
     *
24
     * @var PreguntaInterface
25
     */
26
    private PreguntaInterface $_preguntaTres;
27
    /**
28
     *
29
     * @var PreguntaInterface
30
     */
31
    private PreguntaInterface $_preguntaCuatro;
32
    /**
33
     *
34
     * @var PreguntaInterface
35
     */
36
    private PreguntaInterface $_preguntaSeis;
37
    /**
38
     *
39
     * @var PreguntaInterface
40
     */
41
    private PreguntaInterface $_preguntaSiete;
42
    
43
    /**
44
     *
45
     * @param PreguntaInterface $preguntaUno
46
     * @param PreguntaInterface $preguntaDos
47
     * @param PreguntaInterface $preguntaTres
48
     * @param PreguntaInterface $preguntaCuatro
49
     * @param PreguntaInterface $preguntaSeis
50
     * @param PreguntaInterface $preguntaSiete
51
     */
52 11
    public function __construct(
53
        PreguntaInterface $preguntaUno,
54
        PreguntaInterface $preguntaDos,
55
        PreguntaInterface $preguntaTres,
56
        PreguntaInterface $preguntaCuatro,
57
        PreguntaInterface $preguntaSeis,
58
        PreguntaInterface $preguntaSiete
59
    ) {
60 11
        $this->_preguntaUno = $preguntaUno;
61 11
        $this->_preguntaDos = $preguntaDos;
62 11
        $this->_preguntaTres = $preguntaTres;
63 11
        $this->_preguntaCuatro = $preguntaCuatro;
64 11
        $this->_preguntaSeis = $preguntaSeis;
65 11
        $this->_preguntaSiete = $preguntaSiete;
66 11
    }
67
68
    /**
69
     *
70
     * @return PreguntaInterface
71
     */
72 2
    public function preguntaUno(): PreguntaInterface
73
    {
74 2
        return $this->_preguntaUno;
75
    }
76
    
77
    /**
78
     *
79
     * @return PreguntaInterface
80
     */
81 2
    public function preguntaDos(): PreguntaInterface
82
    {
83 2
        return $this->_preguntaDos;
84
    }
85
86
    /**
87
     *
88
     * @return PreguntaInterface
89
     */
90 2
    public function preguntaTres(): PreguntaInterface
91
    {
92 2
        return $this->_preguntaTres;
93
    }
94
95
    /**
96
     *
97
     * @return PreguntaInterface
98
     */
99 2
    public function preguntaCuatro(): PreguntaInterface
100
    {
101 2
        return $this->_preguntaCuatro;
102
    }
103
104
    /**
105
     *
106
     * @return PreguntaInterface
107
     */
108 2
    public function preguntaSeis(): PreguntaInterface
109
    {
110 2
        return $this->_preguntaSeis;
111
    }
112
113
    /**
114
     *
115
     * @return PreguntaInterface
116
     */
117 2
    public function preguntaSiete(): PreguntaInterface
118
    {
119 2
        return $this->_preguntaSiete;
120
    }
121
}
122