1 | <?php |
||
11 | class ExportFile |
||
12 | { |
||
13 | private $extension; |
||
14 | |||
15 | private $domain; |
||
16 | |||
17 | private $locale; |
||
18 | |||
19 | /** |
||
20 | * ArrayCollection with keyword as key, text as value |
||
21 | * |
||
22 | * @var ArrayCollection |
||
23 | */ |
||
24 | private $translations; |
||
25 | |||
26 | /** |
||
27 | * Translations converted into an array |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | private $array = []; |
||
32 | |||
33 | private $content = ''; |
||
34 | |||
35 | 1 | public function __construct() |
|
39 | |||
40 | public function fillArray() |
||
47 | |||
48 | public function assignArrayByPath(&$arr, $path, $value) |
||
58 | |||
59 | public function getExtension() |
||
63 | |||
64 | 1 | public function setExtension($extension) |
|
68 | |||
69 | public function getDomain() |
||
73 | |||
74 | 1 | public function setDomain($domain) |
|
78 | |||
79 | public function getLocale() |
||
83 | |||
84 | 1 | public function setLocale($locale) |
|
88 | |||
89 | public function getTranslations() |
||
93 | |||
94 | public function setTranslations($translations) |
||
98 | |||
99 | public function getContent() |
||
103 | |||
104 | public function setContent($content) |
||
108 | |||
109 | 1 | public function addTranslation(Translation $translation) |
|
113 | |||
114 | public function getArray() |
||
118 | |||
119 | public function setArray($array) |
||
123 | } |
||
124 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.