Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Base |
||
8 | { |
||
9 | /** @var array */ |
||
10 | protected $fields; |
||
11 | |||
12 | /** @var \SimpleSAML\XHTML\Template */ |
||
13 | protected $template; |
||
14 | |||
15 | /** @var \SimpleSAML\Locale\Translate */ |
||
16 | protected $translator; |
||
17 | |||
18 | /** @var string */ |
||
19 | protected $config; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * @param array $fields |
||
24 | * @param string $config |
||
25 | * @param \SimpleSAML\XHTML\Template $template |
||
26 | */ |
||
27 | public function __construct(array $fields, string $config, Template $template) |
||
28 | { |
||
29 | $this->config = $config; |
||
30 | $this->fields = $fields; |
||
31 | $this->template = $template; |
||
32 | $this->translator = $template->getTranslator(); |
||
33 | } |
||
34 | |||
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getPresentation(): array |
||
42 | } |
||
43 | } |
||
44 |