File tree Expand file tree Collapse file tree 5 files changed +9
-38
lines changed
Expand file tree Collapse file tree 5 files changed +9
-38
lines changed Original file line number Diff line number Diff line change 66
77abstract class AbstractExtension
88{
9- abstract public function getType (): string ;
9+ public function __construct (protected array $ data )
10+ {
11+ }
12+
13+ public function getData (): array
14+ {
15+ return $ this ->data ;
16+ }
1017
11- abstract public function getData (): array ;
18+ abstract public function getType (): string ;
1219}
Original file line number Diff line number Diff line change 66
77class CodesExtension extends AbstractExtension
88{
9- public function __construct (private array $ data )
10- {
11- }
12-
139 public function getType (): string
1410 {
1511 return 'codes ' ;
1612 }
17-
18- public function getData (): array
19- {
20- return $ this ->data ;
21- }
2213}
Original file line number Diff line number Diff line change 66
77class PromotionsExtension extends AbstractExtension
88{
9- public function __construct (private array $ data )
10- {
11- }
12-
139 public function getType (): string
1410 {
1511 return 'promotions ' ;
1612 }
17-
18- public function getData (): array
19- {
20- return $ this ->data ;
21- }
2213}
Original file line number Diff line number Diff line change 66
77class RedirectsExtension extends AbstractExtension
88{
9- public function __construct (private array $ data )
10- {
11- }
12-
139 public function getType (): string
1410 {
1511 return 'redirects ' ;
1612 }
17-
18- public function getData (): array
19- {
20- return $ this ->data ;
21- }
2213}
Original file line number Diff line number Diff line change 66
77class TeaserExtension extends AbstractExtension
88{
9- public function __construct (private array $ data )
10- {
11- }
12-
139 public function getType (): string
1410 {
1511 return 'teaser ' ;
1612 }
17-
18- public function getData (): array
19- {
20- return $ this ->data ;
21- }
2213}
You can’t perform that action at this time.
0 commit comments