Zymba Documentation
Base
Text
object @Base() {
construct() {}
callMethod(function $function, ...$arguments): mixed {}
clone(): object {}
countSlots(): int {}
getInternalID(): int {}
isInstanceOf(mixed $prototype): bool {}
listPrototypes(): object {}
listSlotNames(): object {}
listSlots(): object {}
toJSON(): string {}
}
Base prototype.
Methods
Dummy fallback constructor function for ease of constructor chaining.
CODE
$this.construct(): void
Gets the unique internal identification number of this object.
CODE
$this.getInternalID(): int
Returns
| Type | Value |
|---|---|
int |
Lists all prototypes of this object.
CODE
$this.listPrototypes(): object
Returns
| Type | Value |
|---|---|
object | [prototype, ...] |
Lists all slot names of this object.
CODE
$this.listSlotNames(): object
Returns
| Type | Value |
|---|---|
object | [name, ...] |
Lists all slots of this object.
CODE
$this.listSlots(): object
Returns
| Type | Value |
|---|---|
object | [name: value, ...] |
Returns the JavaScript Object Notation (JSON) representation of this object according to RFC 4627.
CODE
$this.toJSON(): string
Returns
| Type | Value |
|---|---|
string |