You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SecretObject.php
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1286,6 +1286,20 @@ public function validate(
1286
1286
return$this;
1287
1287
}
1288
1288
1289
+
/**
1290
+
* Check if a property has a value set.
1291
+
*
1292
+
* This method checks if the specified property is set (exists and has a value). It returns true if the property exists and has a value, and false otherwise.
1293
+
*
1294
+
* @param string $propertyName The name of the property to check.
1295
+
* @return bool true if the property is set, false otherwise.
1296
+
*/
1297
+
publicfunctionhasValue($propertyName)
1298
+
{
1299
+
$var = PicoStringUtil::camelize($propertyName);
1300
+
returnisset($this->{$var});
1301
+
}
1302
+
1289
1303
/**
1290
1304
* Retrieves a value from a nested object using a series of keys.
0 commit comments