Am I correct in assuming that const properties are automatically public? Is there a way to make them private or protected?
Thanks in advance.
I am aware this question is 6 years old
Php 7.1 (currently RC1) allows to specify visibility on class constants.
class Token {
// Constants default to public
const PUBLIC_CONST = 0;
// Constants then also can have a defined visibility
private const PRIVATE_CONST = 0;
protected const PROTECTED_CONST = 0;
public const PUBLIC_CONST_TWO = 0;
//Constants can only have one visibility declaration list
private const FOO = 1, BAR = 2;
}