1 | <?php |
||
23 | class ViewConfig |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | public $loa; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | public $logo; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | public $alt; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | public $title; |
||
44 | |||
45 | /** |
||
46 | * @var array |
||
47 | */ |
||
48 | public $description; |
||
49 | |||
50 | /** |
||
51 | * @var array |
||
52 | */ |
||
53 | public $buttonUse; |
||
54 | |||
55 | /** |
||
56 | * @var null |
||
57 | */ |
||
58 | public $currentLanguage = null; |
||
59 | |||
60 | /** |
||
61 | * The alt, title, description and buttonUse are arrays of translated text. |
||
62 | * |
||
63 | * @param string $loa |
||
64 | * @param string $logo |
||
65 | * @param array $alt |
||
66 | * @param array $title |
||
67 | * @param array $description |
||
68 | * @param array $buttonUse |
||
69 | */ |
||
70 | public function __construct($loa, $logo, array $alt, array $title, array $description, array $buttonUse) |
||
79 | |||
80 | /** |
||
81 | * @return array |
||
82 | */ |
||
83 | public function getTitle() |
||
87 | |||
88 | /** |
||
89 | * @return array |
||
90 | */ |
||
91 | public function getAlt() |
||
95 | |||
96 | /** |
||
97 | * @return array |
||
98 | */ |
||
99 | public function getDescription() |
||
103 | |||
104 | /** |
||
105 | * @return array |
||
106 | */ |
||
107 | public function getButtonUse() |
||
111 | |||
112 | /** |
||
113 | * @param array $translations |
||
114 | * @return mixed |
||
115 | * @throws LogicException |
||
116 | */ |
||
117 | private function getTranslation(array $translations) |
||
133 | } |
||
134 | |||
135 |