From 4ba18098712dc898543ba8c5f7970d6dac48c402 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 2 Apr 2021 22:48:14 +0200 Subject: [PATCH] some weird bug --- core/Elements/Document.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/Elements/Document.class.php b/core/Elements/Document.class.php index e902b85..b3ffe5b 100644 --- a/core/Elements/Document.class.php +++ b/core/Elements/Document.class.php @@ -13,17 +13,17 @@ abstract class Document { private ?string $activeView; public function __construct(User $user, $headClass, $bodyClass, ?string $view = NULL) { + $this->user = $user; $this->head = new $headClass($this); $this->body = new $bodyClass($this); - $this->user = $user; $this->databaseRequired = true; $this->activeView = $view; } - public function getHead() { return $this->head; } - public function getBody() { return $this->body; } - public function getSQL() { return $this->user->getSQL(); } - public function getUser() { return $this->user; } + public function getHead(): Head { return $this->head; } + public function getBody(): Body { return $this->body; } + public function getSQL(): ?\Driver\SQL\SQL { return $this->user->getSQL(); } + public function getUser(): User { return $this->user; } public function getView() : ?View {