Skip to content
Advertisement

Getting properites of static class in static function?

I just wanna get return class properties in not instantiated class use. There is no way to instance this class? Please tell me…! My example is below↓↓

JavaScript

Advertisement

Answer

Use self:: to access static properties:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement