new Interface(_funcsopt, _staticfuncsopt)
Constructs an instance of an Interface. Checks for whether classes are correctly implementing interfaces are run only if they are
provided to super(). The instance#funcs and instance#staticfuncs are initially set to empty arrays for further modification and
usage of isImplemented elsewhere. This is done for convenience purposes. Additionally, every instance has a new set of required
functions because "special" instances could potentially have different required functions than other instances of the same class.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
_funcs |
* |
<optional> |
[] | Instance methods this integration/interface must have in addition to those up the prototype chain. |
_staticfuncs |
* |
<optional> |
[] | Static methods this integration/interface must have in addition to those up the prototype chain. |