Total Complexity | 4 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | abstract class AbstractScoreThreshold implements ScoreThresholdInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var General |
||
24 | */ |
||
25 | private $generalConfig; |
||
26 | |||
27 | /** |
||
28 | * @var Frontend |
||
29 | */ |
||
30 | private $frontendConfig; |
||
31 | |||
32 | /** |
||
33 | * @var Backend |
||
34 | */ |
||
35 | private $backendConfig; |
||
36 | |||
37 | /** |
||
38 | * AbstractScoreThreshold constructor. |
||
39 | * |
||
40 | * @param General $generalConfig |
||
41 | * @param Frontend $frontendConfig |
||
42 | * @param Backend $backendConfig |
||
43 | */ |
||
44 | public function __construct( |
||
45 | General $generalConfig, |
||
46 | Frontend $frontendConfig, |
||
47 | Backend $backendConfig |
||
48 | ) { |
||
49 | $this->generalConfig = $generalConfig; |
||
50 | $this->frontendConfig = $frontendConfig; |
||
51 | $this->backendConfig = $backendConfig; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return General |
||
56 | */ |
||
57 | public function getGeneralConfig(): General |
||
58 | { |
||
59 | return $this->generalConfig; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return Frontend |
||
64 | */ |
||
65 | public function getFrontendConfig(): Frontend |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return Backend |
||
72 | */ |
||
73 | public function getBackendConfig(): Backend |
||
76 | } |
||
77 | } |