mirror of
https://github.com/archtechx/enums.git
synced 2025-12-12 08:04:04 +00:00
* #4 Added `From` trait This adds the `from()` and `tryFrom()` methods to pure enums, and the `fromName()` and `tryFromName()` methods for all enum types. * Code review changes Dropped support for fragile indexes on pure enums * Dropped unnecessary array_pop() * import ValueError * remove import Co-authored-by: Samuel Štancl <samuel@archte.ch> Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> |
||
|---|---|---|
| .. | ||
| FromTest.php | ||
| InvokableCasesTest.php | ||
| NamesTest.php | ||
| OptionsTest.php | ||
| ValuesTest.php | ||