1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-08-12 17:54:30 +02:00

Moved basics chapters into sub-folder and reformatted config file

This commit is contained in:
Andrew Davis
2019-01-12 10:57:14 -06:00
parent b4e75b05f9
commit 8aaf7d66fb
20 changed files with 29 additions and 29 deletions

View File

@@ -47,14 +47,14 @@ class Page
*/
public function __construct(
string $name,
?string $template = null,
?string $chapter = null,
?array $variables = []
?array $variables = [],
?string $template = null
) {
$this->name = $name;
$this->template = $template;
$this->chapter = $chapter;
$this->variables = $variables;
$this->template = $template;
}
/**
@@ -68,10 +68,10 @@ class Page
*/
public static function create(
string $name,
?string $template = null,
?string $chapter = null,
?array $variables = []
?array $variables = [],
?string $template = null
): Page {
return new static($name, $template, $chapter, $variables);
return new static($name, $chapter, $variables, $template);
}
}