Project

General

Profile

Actions

Feature #82412

closed

Task #82404: Improve enumeration usage

Add magic static call to enumeration class

Added by Romain Canon over 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
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 #1

Updated by Mathias Brodala about 6 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions #2

Updated by Susanne Moog over 5 years ago

  • Target version changed from 9 LTS to Candidate for Major Version
Actions #3

Updated by Susanne Moog about 4 years ago

  • Status changed from New to Closed

As this is a technical task and nothing happened for a long time due to lack of time, I'm going to close the ticket for now. If you have time to work on it again, please reopen (with pushing a patch).

Actions

Also available in: Atom PDF