JObject::def
Sets a default value if not alreay assigned
Signature
public function def(string
$property,
[mixed
$default = null] )
Parameters
-
$property
- The name of the property.
-
$default
- The default value.
Returns
- mixed