Actions
Feature #82412
closedTask #82404: Improve enumeration usage
Add magic static call to enumeration class
Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2017-09-09
Due date:
% Done:
0%
Estimated time:
PHP Version:
7.0
Tags:
enumeration,enum
Complexity:
Sprint Focus:
Description
See epic ticket for more information.
Introducing magic static methods calls, to dramatically ease readability:
// Old way:
$myEnum = MyEnum::cast(MyEnum::MY_VALUE);
// New way:
$myEnum = MyEnum::MY_VALUE();
Actions