MAPG-180 declare CSS and JS files

This commit is contained in:
bence committed 2020-06-27 02:25:54 +02:00
1 parent 5e645a1313
commit 18bf9aaade
9 files changed
+93 -59

No files matched your search

+17 -1
View File
@@ -4,13 +4,19 @@ class ParsedFragment
{
private ?string $extends;
private array $css;
private array $js;
private array $sections;
private array $extra;
public function __construct(?string $extends, array $sections, array $extra)
public function __construct(?string $extends, array $css, array $js, array $sections, array $extra)
{
$this->extends = $extends;
$this->css = $css;
$this->js = $js;
$this->sections = $sections;
$this->extra = $extra;
}
@@ -20,6 +26,16 @@ class ParsedFragment
return $this->extends;
}
public function getCss(): array
{
return $this->css;
}
public function getJs(): array
{
return $this->js;
}
public function getSections(): array
{
return $this->sections;