Passed
Push — master ( 38868e...4e6da1 )
by WEBEWEB
02:05
created

SyntaxHighlighterStrings::getNoBrush()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the syntaxhighligter-bundle package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\SyntaxHighlighterBundle\API;
13
14
/**
15
 * SyntaxHightlighter strings.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\SyntaxHighlighterBundle\API
19
 */
20
class SyntaxHighlighterStrings {
21
22
    /**
23
     * Alert.
24
     *
25
     * @var string
26
     */
27
    private $alert = "SyntaxHighlighter\n\n";
28
29
    /**
30
     * Brush not HTML script.
31
     *
32
     * @var string
33
     */
34
    private $brushNotHtmlScript = "Brush wasn't made for html-script option:";
35
36
    /**
37
     * Copy to clipboard.
38
     *
39
     * @var string
40
     */
41
    private $copyToClipboard = "copy to clipboard";
42
43
    /**
44
     * Copy to clipboard confirmation.
45
     *
46
     * @var string
47
     */
48
    private $copyToClipboardConfirmation = "The code is in your clipboard now";
49
50
    /**
51
     * Expand source.
52
     *
53
     * @var string
54
     */
55
    private $expandSource = "+ expand source";
56
57
    /**
58
     * Help.
59
     *
60
     * @var string
61
     */
62
    private $help = "?";
63
64
    /**
65
     * No brush.
66
     *
67
     * @var string
68
     */
69
    private $noBrush = "Can't find brush for:";
70
71
    /**
72
     * Print.
73
     *
74
     * @var string
75
     */
76
    private $print = "print";
77
78
    /**
79
     * View source.
80
     *
81
     * @var string
82
     */
83
    private $viewSource = "view source";
84
85
    /**
86
     * Constructor.
87
     */
88
    public function __construct() {
89
        // NOTHING TO DO.
90
    }
91
92
    /**
93
     * Get the alert.
94
     *
95
     * @return string Returns the alert.
96
     */
97
    public function getAlert() {
98
        return $this->alert;
99
    }
100
101
    /**
102
     * Get the brush not HTML script.
103
     *
104
     * @return string Returns the brush not HTML script.
105
     */
106
    public function getBrushNotHtmlScript() {
107
        return $this->brushNotHtmlScript;
108
    }
109
110
    /**
111
     * Get the copy to clipboard.
112
     *
113
     * @return string Returns the copy to clipboard.
114
     */
115
    public function getCopyToClipboard() {
116
        return $this->copyToClipboard;
117
    }
118
119
    /**
120
     * Get the copy to clipboard confirmation.
121
     *
122
     * @return string Returns the copy to clipboard confirmation.
123
     */
124
    public function getCopyToClipboardConfirmation() {
125
        return $this->copyToClipboardConfirmation;
126
    }
127
128
    /**
129
     * Get the expand source.
130
     *
131
     * @return string Returns the expand source.
132
     */
133
    public function getExpandSource() {
134
        return $this->expandSource;
135
    }
136
137
    /**
138
     * Get the help.
139
     *
140
     * @return string Returns the help.
141
     */
142
    public function getHelp() {
143
        return $this->help;
144
    }
145
146
    /**
147
     * Get the no brush.
148
     *
149
     * @return string Returns the no brush.
150
     */
151
    public function getNoBrush() {
152
        return $this->noBrush;
153
    }
154
155
    /**
156
     * Get the print.
157
     *
158
     * @return string Returns the print.
159
     */
160
    public function getPrint() {
161
        return $this->print;
162
    }
163
164
    /**
165
     * Get the view source.
166
     *
167
     * @return string Returns the view source.
168
     */
169
    public function getViewSource() {
170
        return $this->viewSource;
171
    }
172
173
    /**
174
     * Set the alert.
175
     *
176
     * @param string $alert The alert.
177
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
178
     */
179
    public function setAlert($alert = "SyntaxHighlighter\n\n") {
180
        $this->alert = $alert;
181
        return $this;
182
    }
183
184
    /**
185
     * Set the brush not HTML script.
186
     *
187
     * @param string $brushNotHtmlScript The brush not HTML script.
188
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
189
     */
190
    public function setBrushNotHtmlScript($brushNotHtmlScript = "Brush wasn't made for html-script option:") {
191
        $this->brushNotHtmlScript = $brushNotHtmlScript;
192
        return $this;
193
    }
194
195
    /**
196
     * Set the copy to clipboard.
197
     *
198
     * @param string $copyToClipboard The copy to clipboard.
199
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
200
     */
201
    public function setCopyToClipboard($copyToClipboard = "copy to clipboard") {
202
        $this->copyToClipboard = $copyToClipboard;
203
        return $this;
204
    }
205
206
    /**
207
     * Set the copy to clipboard confirmation.
208
     *
209
     * @param string $copyToClipboardConfirmation The copy to clipboard confirmation.
210
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
211
     */
212
    public function setCopyToClipboardConfirmation($copyToClipboardConfirmation = "The code is in your clipboard now") {
213
        $this->copyToClipboardConfirmation = $copyToClipboardConfirmation;
214
        return $this;
215
    }
216
217
    /**
218
     * Set the expand source.
219
     *
220
     * @param string $expandSource The expand source.
221
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
222
     */
223
    public function setExpandSource($expandSource = "+ expand source") {
224
        $this->expandSource = $expandSource;
225
        return $this;
226
    }
227
228
    /**
229
     * Set the help.
230
     *
231
     * @param string $help The help.
232
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
233
     */
234
    public function setHelp($help = "?") {
235
        $this->help = $help;
236
        return $this;
237
    }
238
239
    /**
240
     * Set the no brush.
241
     *
242
     * @param string $noBrush The no brush.
243
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
244
     */
245
    public function setNoBrush($noBrush = "Can't find brush for:") {
246
        $this->noBrush = $noBrush;
247
        return $this;
248
    }
249
250
    /**
251
     * Set the print.
252
     *
253
     * @param string $print The print.
254
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
255
     */
256
    public function setPrint($print = "print") {
257
        $this->print = $print;
258
        return $this;
259
    }
260
261
    /**
262
     * Set the view source.
263
     *
264
     * @param string $viewSource The view source.
265
     * @return SyntaxHighlighterStrings Returns this SyntaxHighlighter strings.
266
     */
267
    public function setViewSource($viewSource = "view source") {
268
        $this->viewSource = $viewSource;
269
        return $this;
270
    }
271
272
}
273