From 4cafd2c93ba1d90684242ea31e043b3f2d1e5839 Mon Sep 17 00:00:00 2001 From: Sieciech Date: Sat, 23 Oct 2021 22:26:30 +0200 Subject: [PATCH] cast --- src/Fufle/ORM/Model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Fufle/ORM/Model.php b/src/Fufle/ORM/Model.php index 4a0bdc2..69781b7 100644 --- a/src/Fufle/ORM/Model.php +++ b/src/Fufle/ORM/Model.php @@ -21,6 +21,10 @@ abstract class Model { } return $array; } + + public static function Instance(object $object): static { + return $object; + } protected static function QueryModel() { return static::SetQueryModel();