1 | <?php |
||
9 | class InvalidArgumentException extends Exception |
||
10 | { |
||
11 | public static function arraySizeNotMatch(): self |
||
15 | |||
16 | public static function percentNotInRange($name): self |
||
20 | |||
21 | public static function arrayCantBeEmpty(): self |
||
25 | |||
26 | public static function arraySizeTooSmall(int $minimumSize = 2): self |
||
27 | { |
||
28 | return new self(sprintf('The array must have at least %d elements', $minimumSize)); |
||
29 | } |
||
30 | |||
31 | public static function matrixDimensionsDidNotMatch(): self |
||
35 | |||
36 | public static function inconsistentMatrixSupplied(): self |
||
40 | |||
41 | public static function invalidClustersNumber(): self |
||
45 | |||
46 | /** |
||
47 | * @param mixed $target |
||
48 | */ |
||
49 | public static function invalidTarget($target): self |
||
53 | |||
54 | public static function invalidStopWordsLanguage(string $language): self |
||
58 | |||
59 | public static function invalidLayerNodeClass(): self |
||
63 | |||
64 | public static function invalidLayersNumber(): self |
||
68 | |||
69 | public static function invalidClassesNumber(): self |
||
73 | |||
74 | public static function inconsistentClasses(): self |
||
78 | |||
79 | public static function fileNotFound(string $file): self |
||
83 | |||
84 | public static function fileNotExecutable(string $file): self |
||
88 | |||
89 | public static function pathNotFound(string $path): self |
||
93 | |||
94 | public static function pathNotWritable(string $path): self |
||
98 | |||
99 | public static function invalidOperator(string $operator): self |
||
103 | } |
||
104 |