MAPG-89 add classes that can link views into one PHP

This commit is contained in:
bence committed 2020-06-27 00:44:38 +02:00
1 parent ee6aa59253
commit c48bbdc3c2
3 files changed
+263

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
<?php namespace MapGuesser\View;
class ParsedFragment
{
private ?string $extends;
private array $sections;
private array $extra;
public function __construct(?string $extends, array $sections, array $extra)
{
$this->extends = $extends;
$this->sections = $sections;
$this->extra = $extra;
}
public function getExtends(): ?string
{
return $this->extends;
}
public function getSections(): array
{
return $this->sections;
}
public function getExtra(): array
{
return $this->extra;
}
}