create()
create() : string
Returns
string —the name of the class that is being created
addMethod(string $methodName, callable $fn, string[] $typeList, string|void $accessLevel) : void
string | $methodName | the method name |
callable | $fn | the implementation of the method |
string[] | $typeList | the type hints for each argument. Use empty string for no typehint |
string|void | $accessLevel | the access type, defaults to public |