Completed
Push — develop ( da7aa8...3d4c5c )
by greg
09:02
created

ModuleOptions   B

Complexity

Total Complexity 36

Size/Duplication

Total Lines 246
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 36
lcom 0
cbo 1
dl 0
loc 246
rs 8.8
c 1
b 0
f 0

36 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultShareMessage() 0 4 1
A setDefaultShareMessage() 0 6 1
A getAdServing() 0 4 1
A setAdServing() 0 6 1
A getGoogleAnalytics() 0 4 1
A setGoogleAnalytics() 0 6 1
A getFacebookOpengraph() 0 4 1
A setFacebookOpengraph() 0 6 1
A getTwitterCard() 0 4 1
A setTwitterCard() 0 5 1
A getQuConfig() 0 4 1
A setQuConfig() 0 6 1
A getCkeditor() 0 4 1
A setCkeditor() 0 6 1
A getTransportClass() 0 4 1
A setTransportClass() 0 6 1
A getOptionsClass() 0 4 1
A setOptionsClass() 0 6 1
A getTwilio() 0 4 1
A setTwilio() 0 4 1
A getPhpvideotoolkit() 0 4 1
A setPhpvideotoolkit() 0 4 1
A getOptions() 0 4 1
A setOptions() 0 6 1
A getBitlyUsername() 0 4 1
A setBitlyUsername() 0 6 1
A getGRecaptchaKey() 0 4 1
A setGRecaptchaKey() 0 6 1
A getGRecaptchaUrl() 0 4 1
A setGRecaptchaUrl() 0 6 1
A getBitlyApiKey() 0 4 1
A setBitlyApiKey() 0 6 1
A getBitlyUrl() 0 4 1
A setBitlyUrl() 0 6 1
A getLocale() 0 4 1
A setLocale() 0 6 1
1
<?php
2
3
namespace PlaygroundCore\Options;
4
5
use Zend\Stdlib\AbstractOptions;
6
7
class ModuleOptions extends AbstractOptions
8
{
9
    protected $bitlyUsername = '';
10
    protected $bitlyApiKey   = '';
11
    protected $gReCaptchaKey = '';
12
    protected $gReCaptchaUrl = '';
13
    protected $bitlyUrl      = 'http://api.bit.ly/v3/shorten';
14
    protected $transport_class = 'Zend\Mail\Transport\File';
15
    protected $options_class   = 'Zend\Mail\Transport\FileOptions';
16
    protected $options   = array('path' => 'data/mail/');
17
    protected $twilio = array();
18
    protected $phpvideotoolkit = array();
19
    protected $quConfig = array();
20
    protected $googleAnalytics = array('id' => '');
21
    protected $adServing = array();
22
    protected $defaultShareMessage = 'Venez jouer';
23
    protected $facebookOpengraph = array('appId' => '');
24
    protected $twitterCard = array();
25
    protected $locale = null;
26
27
28
    protected $ckeditor = array();
29
30
    public function getDefaultShareMessage()
31
    {
32
        return $this->defaultShareMessage;
33
    }
34
35
    public function setDefaultShareMessage($defaultShareMessage)
36
    {
37
        $this->defaultShareMessage = $defaultShareMessage;
38
39
        return $this;
40
    }
41
42
    public function getAdServing()
43
    {
44
        return $this->adServing;
45
    }
46
47
    public function setAdServing($adServing)
48
    {
49
        $this->adServing = $adServing;
50
51
        return $this;
52
    }
53
54
    public function getGoogleAnalytics()
55
    {
56
        return $this->googleAnalytics;
57
    }
58
59
    public function setGoogleAnalytics($googleAnalytics)
60
    {
61
        $this->googleAnalytics = $googleAnalytics;
62
63
        return $this;
64
    }
65
66
    public function getFacebookOpengraph()
67
    {
68
        return $this->facebookOpengraph;
69
    }
70
71
    public function setFacebookOpengraph($facebookOpengraph)
72
    {
73
        $this->facebookOpengraph = $facebookOpengraph;
74
75
        return $this;
76
    }
77
    
78
    public function getTwitterCard()
79
    {
80
        return $this->twitterCard;
81
    }
82
    
83
    public function setTwitterCard($twitterCard)
84
    {
85
        $this->twitterCard = $twitterCard;
86
        return $this;
87
    }
88
89
    public function getQuConfig()
90
    {
91
        return $this->quConfig;
92
    }
93
94
    public function setQuConfig($quConfig)
95
    {
96
        $this->quConfig = $quConfig;
97
98
        return $this;
99
    }
100
101
    public function getCkeditor()
102
    {
103
        return $this->ckeditor;
104
    }
105
106
    public function setCkeditor($ckeditor)
107
    {
108
        $this->ckeditor = $ckeditor;
109
110
        return $this;
111
    }
112
113
    public function getTransportClass()
114
    {
115
        return $this->transport_class;
116
    }
117
118
    public function setTransportClass($transport_class)
119
    {
120
        $this->transport_class = $transport_class;
121
122
        return $this;
123
    }
124
125
    public function getOptionsClass()
126
    {
127
        return $this->options_class;
128
    }
129
130
    public function setOptionsClass($options_class)
131
    {
132
        $this->options_class = $options_class;
133
134
        return $this;
135
    }
136
137
    /**
138
     * @return the $twilio
139
     */
140
    public function getTwilio()
141
    {
142
        return $this->twilio;
143
    }
144
145
    /**
146
     * @param multitype: $twilio
0 ignored issues
show
Documentation introduced by
The doc-type multitype: could not be parsed: Unknown type name "multitype:" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
147
     */
148
    public function setTwilio($twilio)
149
    {
150
        $this->twilio = $twilio;
151
    }
152
153
    /**
154
     * @return the $phpvideotoolkit
155
     */
156
    public function getPhpvideotoolkit()
157
    {
158
        return $this->phpvideotoolkit;
159
    }
160
    
161
    /**
162
     * @param multitype: $phpvideotoolkit
0 ignored issues
show
Documentation introduced by
The doc-type multitype: could not be parsed: Unknown type name "multitype:" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
163
     */
164
    public function setPhpvideotoolkit($phpvideotoolkit)
165
    {
166
        $this->phpvideotoolkit = $phpvideotoolkit;
167
    }
168
    
169
    public function getOptions()
170
    {
171
        return $this->options;
172
    }
173
174
    public function setOptions($options)
175
    {
176
        $this->options = $options;
177
178
        return $this;
179
    }
180
181
    public function getBitlyUsername()
182
    {
183
        return $this->bitlyUsername;
184
    }
185
186
    public function setBitlyUsername($bitlyUsername)
187
    {
188
        $this->bitlyUsername = $bitlyUsername;
189
190
        return $this;
191
    }
192
193
    public function getGRecaptchaKey()
194
    {
195
        return $this->gReCaptchaKey;
196
    }
197
198
    public function setGRecaptchaKey($gReCaptchaKey)
199
    {
200
        $this->gReCaptchaKey = $gReCaptchaKey;
201
202
        return $this;
203
    }
204
205
    public function getGRecaptchaUrl()
206
    {
207
        return $this->gReCaptchaUrl;
208
    }
209
210
    public function setGRecaptchaUrl($gReCaptchaUrl)
211
    {
212
        $this->gReCaptchaUrl = $gReCaptchaUrl;
213
214
        return $this;
215
    }
216
217
    public function getBitlyApiKey()
218
    {
219
        return $this->bitlyApiKey;
220
    }
221
222
    public function setBitlyApiKey($bitlyApiKey)
223
    {
224
        $this->bitlyApiKey = $bitlyApiKey;
225
226
        return $this;
227
    }
228
229
    public function getBitlyUrl()
230
    {
231
        return $this->bitlyUrl;
232
    }
233
234
    public function setBitlyUrl($bitlyUrl)
235
    {
236
        $this->bitlyUrl = $bitlyUrl;
237
238
        return $this;
239
    }
240
241
    public function getLocale()
242
    {
243
        return $this->locale;
244
    }
245
246
    public function setLocale($locale)
247
    {
248
        $this->locale = $locale;
249
250
        return $this;
251
    }
252
}
253