From: Roland Häder Date: Fri, 22 Aug 2025 01:09:11 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ccd1be5f092deac42e687d31751df27524e12f78;p=core.git Continued: - added method isHelperInstanceSet() --- diff --git a/framework/main/traits/helper/class_HelperTrait.php b/framework/main/traits/helper/class_HelperTrait.php index b95179b7..df3ccc36 100644 --- a/framework/main/traits/helper/class_HelperTrait.php +++ b/framework/main/traits/helper/class_HelperTrait.php @@ -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); + } + }