@@ -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 |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace MabeEnum; |
4 | 4 | |
5 | -use RuntimeException; |
|
6 | 5 | use LogicException; |
6 | +use RuntimeException; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Trait to make enumerations serializable |
@@ -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. |
@@ -349,6 +349,7 @@ discard block |
||
349 | 349 | * FIXME: No variadic params with type constraints because of https://github.com/facebook/hhvm/issues/6954 |
350 | 350 | * |
351 | 351 | * @param EnumSet ...$others Other EnumSet(s) of the same enumeration to produce the union |
352 | + * @param EnumSet[] $others |
|
352 | 353 | * @return EnumSet |
353 | 354 | */ |
354 | 355 | public function union(...$others) |
@@ -377,6 +378,7 @@ discard block |
||
377 | 378 | * FIXME: No variadic params with type constraints because of https://github.com/facebook/hhvm/issues/6954 |
378 | 379 | * |
379 | 380 | * @param EnumSet ...$others Other EnumSet(s) of the same enumeration to produce the union |
381 | + * @param EnumSet[] $others |
|
380 | 382 | * @return EnumSet |
381 | 383 | */ |
382 | 384 | public function intersect(...$others) |
@@ -405,6 +407,7 @@ discard block |
||
405 | 407 | * FIXME: No variadic params with type constraints because of https://github.com/facebook/hhvm/issues/6954 |
406 | 408 | * |
407 | 409 | * @param EnumSet ...$others Other EnumSet(s) of the same enumeration to produce the union |
410 | + * @param EnumSet[] $others |
|
408 | 411 | * @return EnumSet |
409 | 412 | */ |
410 | 413 | public function diff(...$others) |
@@ -437,6 +440,7 @@ discard block |
||
437 | 440 | * FIXME: No variadic params with type constraints because of https://github.com/facebook/hhvm/issues/6954 |
438 | 441 | * |
439 | 442 | * @param EnumSet ...$others Other EnumSet(s) of the same enumeration to produce the union |
443 | + * @param EnumSet[] $others |
|
440 | 444 | * @return EnumSet |
441 | 445 | */ |
442 | 446 | public function symDiff(...$others) |