Skip to content

Commit 41f3e2f

Browse files
author
Marc Bennewitz
committed
EnumSet: fixed copy-past failures in comments and exception message
1 parent a200cee commit 41f3e2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MabeEnum/EnumSet.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ class EnumSet implements Iterator, Countable
4848
/**
4949
* Constructor
5050
*
51-
* @param string $enumClass The classname of an enumeration the map is for
51+
* @param string $enumClass The classname of an enumeration the set is for
5252
* @param null|int $flags Flags to define behaviours
5353
* @throws InvalidArgumentException
5454
*/
5555
public function __construct($enumClass, $flags = null)
5656
{
5757
if (!is_subclass_of($enumClass, __NAMESPACE__ . '\Enum')) {
5858
throw new InvalidArgumentException(sprintf(
59-
"This EnumMap can handle subclasses of '%s' only",
59+
"This EnumSet can handle subclasses of '%s' only",
6060
__NAMESPACE__ . '\Enum'
6161
));
6262
}
@@ -68,7 +68,7 @@ public function __construct($enumClass, $flags = null)
6868
}
6969

7070
/**
71-
* Get the classname of enumeration this map is for
71+
* Get the classname of enumeration this set is for
7272
* @return string
7373
*/
7474
public function getEnumClass()

0 commit comments

Comments
 (0)