Javascript
final class Javascript implements Type, JavascriptInterface, Serializable, JsonSerializable (View source)
Class Javascript
Methods
__construct(string $javascript, array|object|null $scope = null)
Construct a new Javascript
static
__set_state(array $properties)
No description
string
getCode()
Returns the Javascript's code
object|null
getScope()
Returns the Javascript's scope document
string
__toString()
Returns the Javascript's code
string|null
serialize()
Serialize a Javascript
void
unserialize(string $data)
Unserialize a Javascript
mixed
jsonSerialize()
Returns a representation that can be converted to JSON
Details
final
__construct(string $javascript, array|object|null $scope = null)
Construct a new Javascript
static
__set_state(array $properties)
No description
final string
getCode()
Returns the Javascript's code
final object|null
getScope()
Returns the Javascript's scope document
final string
__toString()
Returns the Javascript's code
final string|null
serialize()
Since: 1.2.0
Serialize a Javascript
final void
unserialize(string $data)
Since: 1.2.0
Unserialize a Javascript
final mixed
jsonSerialize()
Since: 1.2.0
Returns a representation that can be converted to JSON