]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Aug 2025 00:49:50 +0000 (02:49 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Aug 2025 00:49:50 +0000 (02:49 +0200)
- added missing method isStateInstanceSet()

framework/main/traits/state/class_StateableTrait.php

index 4f8bf4c8846548448dcbf857043488bcaa145eb1..2214a6a83247c35eafb1233c6202f3e7d3523031 100644 (file)
@@ -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);
+       }
+
 }