11<?php
2+
23declare (strict_types=1 );
34
45namespace Blibio \Combinatorics ;
56
6- use InvalidArgumentException ;
7-
87final readonly class Combinatorics
98{
109 /**
1110 * @template U
11+ *
1212 * @param array<array-key, U> $elements
13- * @param int<1, max> $k
13+ * @param int<1, max> $k
14+ *
1415 * @return Combination\WithRepetition<U>
1516 *
16- * @throws InvalidArgumentException
17+ * @throws \ InvalidArgumentException
1718 */
1819 public static function combinationsWithRepetition (array $ elements , int $ k ): Combination \WithRepetition
1920 {
@@ -22,11 +23,13 @@ public static function combinationsWithRepetition(array $elements, int $k): Comb
2223
2324 /**
2425 * @template U
26+ *
2527 * @param array<array-key, U> $elements
26- * @param int<1, max> $k
28+ * @param int<1, max> $k
29+ *
2730 * @return Combination\WithoutRepetition<U>
2831 *
29- * @throws InvalidArgumentException
32+ * @throws \ InvalidArgumentException
3033 */
3134 public static function combinationsWithoutRepetition (array $ elements , int $ k ): Combination \WithoutRepetition
3235 {
@@ -35,11 +38,13 @@ public static function combinationsWithoutRepetition(array $elements, int $k): C
3538
3639 /**
3740 * @template U
41+ *
3842 * @param array<array-key, U> $elements
39- * @param int<1, max> $k
43+ * @param int<1, max> $k
44+ *
4045 * @return Permutation\WithRepetition<U>
4146 *
42- * @throws InvalidArgumentException
47+ * @throws \ InvalidArgumentException
4348 */
4449 public static function permutationsWithRepetition (array $ elements , int $ k ): Permutation \WithRepetition
4550 {
@@ -48,11 +53,13 @@ public static function permutationsWithRepetition(array $elements, int $k): Perm
4853
4954 /**
5055 * @template U
56+ *
5157 * @param array<array-key, U> $elements
52- * @param int<1, max> $k
58+ * @param int<1, max> $k
59+ *
5360 * @return Permutation\WithoutRepetition<U>
5461 *
55- * @throws InvalidArgumentException
62+ * @throws \ InvalidArgumentException
5663 */
5764 public static function permutationsWithoutRepetition (array $ elements , int $ k ): Permutation \WithoutRepetition
5865 {
0 commit comments