This post is more than 18 months old. Since technology changes too rapidly, this content may be out of date (but that's not always the case). Please remember to verify any technical or programming information with the current release.
Since PHP 7.1, visibility has been supported on PHP class constants. Here’s a quick video about how these work and why you might want to use different visibilities.