How to add visibility to 338 Class Constants in 25 seconds
How to add visibility to 338 Class Constants in 25 seconds
tomasvotruba.com How to add visibility to 338 Class Constants in 25 seconds
In PHP, we have classes with methods inside them. Would making all your methods `public` be a good idea? No, because some of them should be used only by the class they're in and not anywhere else. What about class constants?
![How to add visibility to 338 Class Constants in 25 seconds](https://lemmy.world/pictrs/image/6a587386-9d36-4b2c-a3eb-a2e9403ef7e7.png?format=webp&thumbnail=256)
In PHP, we have classes with methods inside them. Would making all your methods public
be a good idea? No, because some of them should be used only by the class they're in and not anywhere else. What about class constants?
0 comments