File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/PhpPresentation/Style Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ class Font implements ComparableInterface
46
46
public const UNDERLINE_WAVYDOUBLE = 'wavyDbl ' ;
47
47
public const UNDERLINE_WAVYHEAVY = 'wavyHeavy ' ;
48
48
public const UNDERLINE_WORDS = 'words ' ;
49
+
50
+ /* Strike types */
51
+ public const STRIKE_NONE = 'noStrike ' ;
52
+ public const STRIKE_SINGLE = 'sngStrike ' ;
53
+ public const STRIKE_DOUBLE = 'dblStrike ' ;
49
54
50
55
public const FORMAT_LATIN = 'latin ' ;
51
56
public const FORMAT_EAST_ASIAN = 'ea ' ;
@@ -149,7 +154,7 @@ class Font implements ComparableInterface
149
154
public function __construct ()
150
155
{
151
156
$ this ->color = new Color (Color::COLOR_BLACK );
152
- $ this ->strikethrough = ' noStrike ' ;
157
+ $ this ->strikethrough = self :: STRIKE_NONE ;
153
158
}
154
159
155
160
/**
@@ -345,10 +350,10 @@ public function isStrikethrough(): bool
345
350
/**
346
351
* Set Strikethrough.
347
352
*/
348
- public function setStrikethrough ($ pValue = ' noStrike ' )
353
+ public function setStrikethrough ($ pValue = self :: STRIKE_NONE )
349
354
{
350
355
if ($ pValue == '' ) {
351
- $ pValue = ' noStrike ' ;
356
+ $ pValue = self :: STRIKE_NONE ;
352
357
}
353
358
$ this ->strikethrough = $ pValue ;
354
359
You can’t perform that action at this time.
0 commit comments