Completed
Pull Request — master (#308)
by greg
08:10 queued 04:55
created

ModuleOptions::setShareSubjectLine()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
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
     */
57
    protected $inviteToTeamSubjectLine = '';
58
59
    /**
60
     * @var string
61
     * The field associated with the invitation request Id
62
     */
63
    protected $onInvitationField = 'code';
64
65
    /**
66
     * @var string
67
     */
68
    protected $gameEntityClass = 'PlaygroundGame\Entity\Game';
69
70
    /**
71
     * Set game entity class name
72
     *
73
     * @param $gameEntityClass
74
     * @return ModuleOptions
75
     */
76
    public function setGameEntityClass($gameEntityClass)
77
    {
78
        $this->gameEntityClass = $gameEntityClass;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function getGameEntityClass()
87
    {
88
        return $this->gameEntityClass;
89
    }
90
91
    /**
92
     * Set media path
93
     *
94
     * @param  string                           $media_path
95
     * @return \PlaygroundGame\Options\ModuleOptions
96
     */
97
    public function setMediaPath($media_path)
98
    {
99
        $this->media_path = $media_path;
100
101
        return $this;
102
    }
103
104
    /**
105
     * @return string
106
     */
107
    public function getMediaPath()
108
    {
109
        return $this->media_path;
110
    }
111
112
    /**
113
     *
114
     * @param  string                           $media_url
115
     * @return \PlaygroundGame\Options\ModuleOptions
116
     */
117
    public function setMediaUrl($media_url)
118
    {
119
        $this->media_url = $media_url;
120
121
        return $this;
122
    }
123
124
    /**
125
     * @return string
126
     */
127
    public function getMediaUrl()
128
    {
129
        return $this->media_url;
130
    }
131
    
132
    public function setEmailFromAddress($emailFromAddress)
133
    {
134
        $this->emailFromAddress = $emailFromAddress;
135
136
        return $this;
137
    }
138
    
139
    public function getEmailFromAddress()
140
    {
141
        return $this->emailFromAddress;
142
    }
143
    
144
    public function setDefaultSubjectLine($defaultSubjectLine)
145
    {
146
        $this->defaultSubjectLine = $defaultSubjectLine;
147
148
        return $this;
149
    }
150
    
151
    public function getDefaultSubjectLine()
152
    {
153
        return $this->defaultSubjectLine;
154
    }
155
    
156
    public function setParticipationSubjectLine($participationSubjectLine)
157
    {
158
        $this->participationSubjectLine = $participationSubjectLine;
159
160
        return $this;
161
    }
162
    
163
    public function getParticipationSubjectLine()
164
    {
165
        return $this->participationSubjectLine;
166
    }
167
    
168
    public function setShareSubjectLine($shareSubjectLine)
169
    {
170
        $this->shareSubjectLine = $shareSubjectLine;
171
172
        return $this;
173
    }
174
    
175
    public function getShareSubjectLine()
176
    {
177
        return $this->shareSubjectLine;
178
    }
179
    
180
    public function setShareCommentSubjectLine($shareCommentSubjectLine)
181
    {
182
        $this->shareCommentSubjectLine = $shareCommentSubjectLine;
183
184
        return $this;
185
    }
186
    
187
    public function getShareCommentSubjectLine()
188
    {
189
        return $this->shareCommentSubjectLine;
190
    }
191
192
    public function setInviteToTeamSubjectLine($inviteToTeamSubjectLine)
193
    {
194
        $this->inviteToTeamSubjectLine = $inviteToTeamSubjectLine;
195
196
        return $this;
197
    }
198
    
199
    public function getInviteToTeamSubjectLine()
200
    {
201
        return $this->inviteToTeamSubjectLine;
202
    }
203
204
    public function setOnInvitationField($onInvitationField)
205
    {
206
        $this->onInvitationField = $onInvitationField;
207
    }
208
209
    public function getOnInvitationField()
210
    {
211
        return $this->onInvitationField;
212
    }
213
214
    /**
215
     *
216
     * @param  string                           $core_layout
217
     * @return \PlaygroundGame\Options\ModuleOptions
218
     */
219
    public function setCoreLayout($core_layout)
220
    {
221
        $this->core_layout = $core_layout;
0 ignored issues
show
Documentation Bug introduced by
It seems like $core_layout of type string is incompatible with the declared type array of property $core_layout.

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..

Loading history...
222
223
        return $this;
224
    }
225
226
    /**
227
     * @return string
228
     */
229
    public function getCoreLayout()
230
    {
231
        return $this->core_layout;
232
    }
233
}
234