I have a class that uses the use of constants in an internal implementation, but I would like to limit the visibility of these constants. Why doesn't PHP allow private constants? Is there any other way to achieve this or is it PHP trying to refuse some wrong design that I don't know about?
private oop php encapsulation const
leo Jul 21 '11 at 1:30 2011-07-21 01:30
source share