2020-06-27 00:15:28 +02:00
|
|
|
<?php namespace MapGuesser\View;
|
|
|
|
|
|
|
|
class ParsedFragment
|
|
|
|
{
|
|
|
|
private ?string $extends;
|
|
|
|
|
2020-06-27 02:25:54 +02:00
|
|
|
private array $css;
|
|
|
|
|
|
|
|
private array $js;
|
|
|
|
|
2020-06-27 00:15:28 +02:00
|
|
|
private array $sections;
|
|
|
|
|
|
|
|
private array $extra;
|
|
|
|
|
2020-06-27 02:25:54 +02:00
|
|
|
public function __construct(?string $extends, array $css, array $js, array $sections, array $extra)
|
2020-06-27 00:15:28 +02:00
|
|
|
{
|
|
|
|
$this->extends = $extends;
|
2020-06-27 02:25:54 +02:00
|
|
|
$this->css = $css;
|
|
|
|
$this->js = $js;
|
2020-06-27 00:15:28 +02:00
|
|
|
$this->sections = $sections;
|
|
|
|
$this->extra = $extra;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getExtends(): ?string
|
|
|
|
{
|
|
|
|
return $this->extends;
|
|
|
|
}
|
|
|
|
|
2020-06-27 02:25:54 +02:00
|
|
|
public function getCss(): array
|
|
|
|
{
|
|
|
|
return $this->css;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getJs(): array
|
|
|
|
{
|
|
|
|
return $this->js;
|
|
|
|
}
|
|
|
|
|
2020-06-27 00:15:28 +02:00
|
|
|
public function getSections(): array
|
|
|
|
{
|
|
|
|
return $this->sections;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getExtra(): array
|
|
|
|
{
|
|
|
|
return $this->extra;
|
|
|
|
}
|
|
|
|
}
|