name = $name; $this->template = $template; $this->code = $code; $this->variables = $variables; } /** * 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 $template = null, ?string $code = null, ?array $variables = [] ): Page { return new static($name, $template, $code, $variables); } }