From e1c0b7d5a7797fd4e2e9f2de6f77dd262d8fedb9 Mon Sep 17 00:00:00 2001 From: Rob Date: Fri, 2 Jun 2023 09:53:58 +0200 Subject: [PATCH] Add missing __isset overloading capability --- src/PrintNode/Entity.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/PrintNode/Entity.php b/src/PrintNode/Entity.php index 8782bea..25337e0 100755 --- a/src/PrintNode/Entity.php +++ b/src/PrintNode/Entity.php @@ -21,6 +21,18 @@ public function __construct(Client $parentClient) { } + /** + * Check if property isset on entity + * @param mixed $propertyName + * @return boolean + */ + public function __isset($propertyName) + { + + return isset($this->$propertyName); + + } + /** * Set property on entity * @param mixed $propertyName @@ -132,4 +144,4 @@ public function __toString() { } -} \ No newline at end of file +}