From 085762ec174eae1c519ec14db632f5ba197ed3c7 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 17 Dec 2024 18:39:18 +0000 Subject: hopefully implement push! again i can't really test this yet because i don't have two https instances that can talk to each other. soon i will set that up and test all these recent commits --- Digitigrade/Model.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Digitigrade/Model.php') diff --git a/Digitigrade/Model.php b/Digitigrade/Model.php index a065154..40e85f4 100644 --- a/Digitigrade/Model.php +++ b/Digitigrade/Model.php @@ -128,6 +128,14 @@ abstract class Model { protected function hydrate() { } + /** + * Checks that all fields of the model are valid and allowed + * @return bool true if the model is valid, false otherwise + */ + protected function validate(): bool { + return true; + } + public static function findWhere(string $whereClause, array $parameters): ?static { $classNameParts = explode('\\', static::class); $className = $classNameParts[count($classNameParts) - 1]; -- cgit v1.3