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:
12
src/Page.php
12
src/Page.php
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user