name = $name; $this->chapter = $chapter; $this->variables = $variables; $this->template = $template; } /** * Static constructor * * @param string $name * @param string|null $template * @param string|null $code * @param array $variables * @return Apprentice\Page */ public static function create( string $name, ?string $chapter = null, ?array $variables = [], ?string $template = null ): Page { return new static($name, $chapter, $variables, $template); } }