@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace MabeEnum; |
| 4 | 4 | |
| 5 | -use ReflectionClass; |
|
| 6 | 5 | use InvalidArgumentException; |
| 7 | 6 | use LogicException; |
| 7 | +use ReflectionClass; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Class to implement enumerations for PHP 5 (without SplEnum) |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace MabeEnum; |
| 4 | 4 | |
| 5 | -use SplObjectStorage; |
|
| 6 | 5 | use InvalidArgumentException; |
| 6 | +use SplObjectStorage; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * EnumMap implementation in base of SplObjectStorage |
@@ -346,6 +346,7 @@ discard block |
||
| 346 | 346 | /** |
| 347 | 347 | * Produce a new set with enumerators from both this and other (this | other) |
| 348 | 348 | * @param EnumSet ...$others Other EnumSet(s) of the same enumeration to produce the union |
| 349 | + * @param EnumSet[] $others |
|
| 349 | 350 | * @return EnumSet |
| 350 | 351 | */ |
| 351 | 352 | public function union(EnumSet ...$others) |
@@ -370,6 +371,7 @@ discard block |
||
| 370 | 371 | /** |
| 371 | 372 | * Produce a new set with enumerators common to both this and other (this & other) |
| 372 | 373 | * @param EnumSet ...$others Other EnumSet(s) of the same enumeration to produce the union |
| 374 | + * @param EnumSet[] $others |
|
| 373 | 375 | * @return EnumSet |
| 374 | 376 | */ |
| 375 | 377 | public function intersect(EnumSet ...$others) |
@@ -394,6 +396,7 @@ discard block |
||
| 394 | 396 | /** |
| 395 | 397 | * Produce a new set with enumerators in this but not in other (this - other) |
| 396 | 398 | * @param EnumSet ...$others Other EnumSet(s) of the same enumeration to produce the union |
| 399 | + * @param EnumSet[] $others |
|
| 397 | 400 | * @return EnumSet |
| 398 | 401 | */ |
| 399 | 402 | public function diff(EnumSet ...$others) |
@@ -422,6 +425,7 @@ discard block |
||
| 422 | 425 | /** |
| 423 | 426 | * Produce a new set with enumerators in either this and other but not in both (this ^ (other | other)) |
| 424 | 427 | * @param EnumSet ...$others Other EnumSet(s) of the same enumeration to produce the union |
| 428 | + * @param EnumSet[] $others |
|
| 425 | 429 | * @return EnumSet |
| 426 | 430 | */ |
| 427 | 431 | public function symDiff(EnumSet ...$others) |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace MabeEnum; |
| 4 | 4 | |
| 5 | 5 | use Countable; |
| 6 | -use Iterator; |
|
| 7 | 6 | use InvalidArgumentException; |
| 7 | +use Iterator; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * This EnumSet is based on a bitset of a binary string. |