Closure
Less than 1 minute
Closure
The Hazaar Closure Class.
This class is a wrapper around PHP's Closure class that allows for the serialization of closures. This is useful for storing closures in a database or transmitting them over a network.
Properties
public $
public $
code
private string $code
Methods
__construct
public __construct({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$function | \stdClass |
__invoke
public __invoke({Array})
__toString
public __toString({Array})
__sleep
public __sleep({Array})
__wakeup
public __wakeup({Array})
getClosure
public getClosure({Array})
getCode
public getCode({Array})
loadCodeFromString
public loadCodeFromString({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$string | string |
getParameters
public getParameters({Array})
jsonSerialize
public jsonSerialize({Array})
fetchCode
protected fetchCode({Array})
Generated by Hazaar API Doc Generator