ClassCallable

Class Callable Decorator

Example

// definition for below classes
// can be called with `new`
new yourclass();
new yourclass(arg, arg1);
// can be called directly like function
yourclass();
yourclass(arg, arg1);