Javascript
final class Javascript implements Type, JavascriptInterface, JsonSerializable, Stringable (View source)
Class Javascript
Methods
__construct(string $javascript, array|object|null $scope = null)
Construct a new Javascript
static Javascript
__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
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 Javascript
__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 mixed
jsonSerialize()
Since: 1.2.0
Returns a representation that can be converted to JSON