$value
$value : mixed
Enum value
Base Enum class
Create an enum by implementing this class and adding class constants.
class Action extends Enum
{
const VIEW = 'view';
const EDIT = 'edit';
}
$action = Action::VIEW();
$action = new Action(Action::VIEW);
equals(\Enum $enum) : boolean
Compares one Enum with another.
This method is final
\Enum | $enum |
True if Enums are equal, false if not equal