I have an activities enum:
class Activities
{
const running = 'running';
...
}
Now I would like to add an id to the constant:
class Activities
{
const running = ['title' => 'running', 'id' => 1]
...
}
Unfortunately I do not get autocompletion when using an array. I would therefore prefer to use a class instead of the array.
However this is not allowed for a const. (expression is not allowed as class constant value)
Is there a solution that enables autocompletion for this case?