File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ Internally the ```EnumMap``` is based of ```SplObjectStorage```.
97
97
// create a new EnumMap
98
98
$enumMap = new EnumMap('UserStatus');
99
99
100
- // attach entries (by value of by instance)
100
+ // attach entries (by value or by instance)
101
101
$enumMap->attach(UserStatus::INACTIVE, 'inaktiv');
102
102
$enumMap->attach(UserStatus::ACTIVE(), 'aktiv');
103
103
$enumMap->attach(UserStatus::DELETED(), 'gelöscht');
@@ -125,7 +125,7 @@ Internally it's based of a list (array) of ordinal values.
125
125
// create a new EnumSet
126
126
$enumSet = new EnumSet('UserStatus');
127
127
128
- // attach entries (by value of by instance)
128
+ // attach entries (by value or by instance)
129
129
$enumSet->attach(UserStatus::INACTIVE);
130
130
$enumSet->attach(UserStatus::ACTIVE());
131
131
$enumSet->attach(UserStatus::DELETED());
You can’t perform that action at this time.
0 commit comments