|
The MongoDB\BSON\Javascript classIntroductionBSON type for Javascript code. An optional scope document may be specified that maps identifiers to values and defines the scope in which the code should be evaluated by the server.
Class synopsisMongoDB\BSON\Javascript
final
class MongoDB\BSON\Javascript
implements
MongoDB\BSON\JavascriptInterface, MongoDB\BSON\Type, Serializable, JsonSerializable, Stringable {
/* Methods */
final public __construct(string
$code , arrayobjectnull $scope = null )final public string getCode()
final public objectnull getScope()
final public mixed jsonSerialize()
final public string serialize()
final public string __toString()
final public void unserialize(string
}$data )Changelog
|