From: Roland Häder Date: Fri, 22 Aug 2025 00:49:50 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4cd39eadffced18d1b07ea743858f2ebe9759e39;p=core.git Continued: - added missing method isStateInstanceSet() --- diff --git a/framework/main/traits/state/class_StateableTrait.php b/framework/main/traits/state/class_StateableTrait.php index 4f8bf4c8..2214a6a8 100644 --- a/framework/main/traits/state/class_StateableTrait.php +++ b/framework/main/traits/state/class_StateableTrait.php @@ -52,4 +52,13 @@ trait StateableTrait { return $this->stateInstance; } + /** + * Checks whether a state instance is set + * + * @return $isset Whether a state instance is set + */ + public final function isStateInstanceSet (): bool { + return ($this->stateInstance instanceof Stateable); + } + }