oop - PHP private const -


i have class benefits use of constants in internal implementation, limit visibility of these constants. why doesn't php permit private constants? there way achieve or php trying discourage type of design misstep ignorant of?

use private static properties. in case have same variable throughout objects , if want extend it's scope nested can expose getter method value , restrict variables settings.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -