Closed akabekobeko closed 7 years ago
I changed the class to a function, but the namespace effect was impaired. Aliasing by as
on theimport
side is also possible. But if it is a class, alias is unnecessary because the class name functions as namespace.
For this reason we will organize public/private etc on this issue.
Change classes that need not be instantiated to functions. For static methods only, the function is preferred because it strongly specifies that it has no state.