Open
Description
Hi,
there is an example in the readme.md of Enum class with private constant. Why it uses private const instead of public const?
Public modifier makes it possible to use class constant in array property:
final class Action extends Enum
{
public const VIEW = 'view';
public const EDIT = 'edit';
}
class ActionValidation
{
private array types = [Action::VIEW, Action::EDIT];
}
Metadata
Metadata
Assignees
Labels
No labels