Skip to content

Commit 0f31e08

Browse files
committed
:octocat: move QRMarkupHTML::getCssClass() to QRMarkup abstract
1 parent 6c760c5 commit 0f31e08

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/Output/QRMarkup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ public function dump(string $file = null):string{
8282
/**
8383
* returns a string with all css classes for the current element
8484
*/
85-
abstract protected function getCssClass(int $M_TYPE):string;
85+
protected function getCssClass(int $M_TYPE):string{
86+
return $this->options->cssClass;
87+
}
8688

8789
/**
8890
*

src/Output/QRMarkupHTML.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,4 @@ protected function createMarkup(bool $saveToFile):string{
5050
return $html;
5151
}
5252

53-
/**
54-
* @inheritDoc
55-
*/
56-
protected function getCssClass(int $M_TYPE):string{
57-
return $this->options->cssClass;
58-
}
59-
6053
}

0 commit comments

Comments
 (0)