]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Aug 2025 01:09:11 +0000 (03:09 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Aug 2025 01:09:11 +0000 (03:09 +0200)
- added method isHelperInstanceSet()

framework/main/traits/helper/class_HelperTrait.php

index b95179b7f21614daad2126e22dbc6e901d9a5706..df3ccc3677a0dc260f0b7cb2fb0fb452d0f53714 100644 (file)
@@ -52,4 +52,13 @@ trait HelperTrait {
                return $this->helperInstance;
        }
 
+       /**
+        * Checks whether a helper instance is set
+        *
+        * @return      $isset  Whether a helper instance is set
+        */
+       public final function isHelperInstanceSet (): bool {
+               return ($this->helperInstance instanceof Helper);
+       }
+
 }