php-enum icon indicating copy to clipboard operation
php-enum copied to clipboard

Change $key from private to protected

Open Externaluse opened this issue 2 years ago • 0 comments

Might there be a chance to change the $key property to protected? Another project (https://github.com/cruxinator/php-bitmask) is using it for extension. I've written my own changes to their bitmask but it's irritating to have two key properties in set_state - although this is mainly relevant for debugging, is there any reason that $key needs to be private?

::__set_state(array( 'value' => 9437184, 'key' => 'SomeEnumValue', 'key' => 'SomeEnumValue|AnotherEnumValue',

Externaluse avatar Dec 25 '23 17:12 Externaluse