1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PlaygroundGame\Options; |
4
|
|
|
|
5
|
|
|
use Zend\Stdlib\AbstractOptions; |
6
|
|
|
|
7
|
|
|
class ModuleOptions extends AbstractOptions implements GameEditOptionsInterface |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* Turn off strict options mode |
11
|
|
|
*/ |
12
|
|
|
protected $__strictMode__ = false; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* drive path to game media files |
16
|
|
|
*/ |
17
|
|
|
protected $media_path = 'public/media/game'; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* url path to game media files |
21
|
|
|
*/ |
22
|
|
|
protected $media_url = 'media/game'; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* core_layout config |
26
|
|
|
*/ |
27
|
|
|
protected $core_layout = array(); |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string |
31
|
|
|
*/ |
32
|
|
|
protected $emailFromAddress = ''; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
protected $defaultSubjectLine = ''; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
*/ |
42
|
|
|
protected $participationSubjectLine = ''; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var string |
46
|
|
|
*/ |
47
|
|
|
protected $shareSubjectLine = ''; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string |
51
|
|
|
*/ |
52
|
|
|
protected $shareCommentSubjectLine = ''; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string |
56
|
|
|
* The field associated with the invitation request Id |
57
|
|
|
*/ |
58
|
|
|
protected $onInvitationField = 'code'; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var string |
62
|
|
|
*/ |
63
|
|
|
protected $gameEntityClass = 'PlaygroundGame\Entity\Game'; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* Set game entity class name |
67
|
|
|
* |
68
|
|
|
* @param $gameEntityClass |
69
|
|
|
* @return ModuleOptions |
70
|
|
|
*/ |
71
|
|
|
public function setGameEntityClass($gameEntityClass) |
72
|
|
|
{ |
73
|
|
|
$this->gameEntityClass = $gameEntityClass; |
74
|
|
|
|
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return string |
80
|
|
|
*/ |
81
|
|
|
public function getGameEntityClass() |
82
|
|
|
{ |
83
|
|
|
return $this->gameEntityClass; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* Set media path |
88
|
|
|
* |
89
|
|
|
* @param string $media_path |
90
|
|
|
* @return \PlaygroundGame\Options\ModuleOptions |
91
|
|
|
*/ |
92
|
|
|
public function setMediaPath($media_path) |
93
|
|
|
{ |
94
|
|
|
$this->media_path = $media_path; |
95
|
|
|
|
96
|
|
|
return $this; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @return string |
101
|
|
|
*/ |
102
|
|
|
public function getMediaPath() |
103
|
|
|
{ |
104
|
|
|
return $this->media_path; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* |
109
|
|
|
* @param string $media_url |
110
|
|
|
* @return \PlaygroundGame\Options\ModuleOptions |
111
|
|
|
*/ |
112
|
|
|
public function setMediaUrl($media_url) |
113
|
|
|
{ |
114
|
|
|
$this->media_url = $media_url; |
115
|
|
|
|
116
|
|
|
return $this; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @return string |
121
|
|
|
*/ |
122
|
|
|
public function getMediaUrl() |
123
|
|
|
{ |
124
|
|
|
return $this->media_url; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
public function setEmailFromAddress($emailFromAddress) |
128
|
|
|
{ |
129
|
|
|
$this->emailFromAddress = $emailFromAddress; |
130
|
|
|
|
131
|
|
|
return $this; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
public function getEmailFromAddress() |
135
|
|
|
{ |
136
|
|
|
return $this->emailFromAddress; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
public function setDefaultSubjectLine($defaultSubjectLine) |
140
|
|
|
{ |
141
|
|
|
$this->defaultSubjectLine = $defaultSubjectLine; |
142
|
|
|
|
143
|
|
|
return $this; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
public function getDefaultSubjectLine() |
147
|
|
|
{ |
148
|
|
|
return $this->defaultSubjectLine; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
public function setParticipationSubjectLine($participationSubjectLine) |
152
|
|
|
{ |
153
|
|
|
$this->participationSubjectLine = $participationSubjectLine; |
154
|
|
|
|
155
|
|
|
return $this; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
public function getParticipationSubjectLine() |
159
|
|
|
{ |
160
|
|
|
return $this->participationSubjectLine; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
public function setShareSubjectLine($shareSubjectLine) |
164
|
|
|
{ |
165
|
|
|
$this->shareSubjectLine = $shareSubjectLine; |
166
|
|
|
|
167
|
|
|
return $this; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
public function getShareSubjectLine() |
171
|
|
|
{ |
172
|
|
|
return $this->shareSubjectLine; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
public function setShareCommentSubjectLine($shareCommentSubjectLine) |
176
|
|
|
{ |
177
|
|
|
$this->shareCommentSubjectLine = $shareCommentSubjectLine; |
178
|
|
|
|
179
|
|
|
return $this; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
public function getShareCommentSubjectLine() |
183
|
|
|
{ |
184
|
|
|
return $this->shareCommentSubjectLine; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
public function setOnInvitationField($onInvitationField) |
188
|
|
|
{ |
189
|
|
|
$this->onInvitationField = $onInvitationField; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
public function getOnInvitationField() |
193
|
|
|
{ |
194
|
|
|
return $this->onInvitationField; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* |
199
|
|
|
* @param string $core_layout |
200
|
|
|
* @return \PlaygroundGame\Options\ModuleOptions |
201
|
|
|
*/ |
202
|
|
|
public function setCoreLayout($core_layout) |
203
|
|
|
{ |
204
|
|
|
$this->core_layout = $core_layout; |
|
|
|
|
205
|
|
|
|
206
|
|
|
return $this; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @return string |
211
|
|
|
*/ |
212
|
|
|
public function getCoreLayout() |
213
|
|
|
{ |
214
|
|
|
return $this->core_layout; |
215
|
|
|
} |
216
|
|
|
} |
217
|
|
|
|
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..