1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 12:34:04 +00:00
Commit graph

25 commits

Author SHA1 Message Date
e3ea43aa00
remove import 2022-03-23 22:15:43 +01:00
Samuel Štancl
0fa89738b4
Merge branch 'master' into issues/#4_fromName_tryFromName 2022-03-23 22:11:51 +01:00
18379047e5
import ValueError 2022-03-23 22:11:24 +01:00
Samuel Levy
0c87357a6e
Extend functionality to work with pure enums (#6)
* Extend functionality to work with pure enums

* Code review changes

Altered `::values()` to act like `::names()` for backed enums, code style fixes, general cleanups
2022-03-23 21:42:35 +01:00
Samuel Levy
e98222a513 Dropped unnecessary array_pop() 2022-03-15 21:53:22 +10:00
Samuel Levy
ad1e07cf39 Code review changes
Dropped support for fragile indexes on pure enums
2022-03-15 07:33:09 +10:00
Samuel Levy
a063814396 #4 Added From trait
This adds the `from()` and `tryFrom()` methods to pure enums, and the `fromName()` and `tryFromName()` methods for all enum types.
2022-03-13 16:09:32 +10:00
Samuel Štancl
20fa78c2b1
Update README.md 2022-02-21 21:35:46 +01:00
Eric Junker
54bedefb79
use array_column() to get the names, values, and options (#3) 2022-02-21 13:32:07 +01:00
Samuel Štancl
c733871aaa
Update README.md 2022-02-21 01:44:47 +01:00
Samuel Štancl
9594edb630 Merge branch 'master' of github.com:archtechx/enums 2022-02-20 21:59:43 +01:00
Samuel Štancl
1fbdbfb914 document names() options() values() 2022-02-20 21:59:36 +01:00
PHP CS Fixer
dbf07102e9 Fix code style (php-cs-fixer) 2022-02-20 20:54:24 +00:00
Samuel Štancl
e65131079c Merge branch 'master' of github.com:archtechx/enums 2022-02-20 21:53:51 +01:00
Samuel Štancl
b50d001374 add names() and values() methods, resolve #1 2022-02-20 21:53:21 +01:00
PHP CS Fixer
17d3a21188 Fix code style (php-cs-fixer) 2022-02-20 20:51:14 +00:00
Samuel Štancl
e01edd128f add options() method, resolve #2 2022-02-20 21:50:53 +01:00
Samuel Štancl
7c02bbaa73 remove docker call 2022-02-20 21:16:03 +01:00
Samuel Štancl
5293b3bb9f wip 2022-02-20 21:10:21 +01:00
Samuel Štancl
055250b9a7 wip 2022-02-20 21:08:00 +01:00
Samuel Štancl
e045c334bc wip 2022-02-20 21:04:01 +01:00
Samuel Štancl
0562f21e68 wip 2022-02-20 21:02:38 +01:00
Samuel Štancl
ca27cbfdf5 wip 2022-02-20 21:02:02 +01:00
Samuel Štancl
41b423da38 initial 2022-02-20 20:58:57 +01:00
f9fe9e5cab Initial commit 2022-02-20 19:51:56 +01:00