| 1 | <?php |
||
| 7 | class InvalidArgumentException extends \Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @return InvalidArgumentException |
||
| 11 | */ |
||
| 12 | public static function arraySizeNotMatch() |
||
| 13 | { |
||
| 14 | return new self('Size of given arrays not match'); |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param $name |
||
| 19 | * |
||
| 20 | * @return InvalidArgumentException |
||
| 21 | */ |
||
| 22 | public static function percentNotInRange($name) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return InvalidArgumentException |
||
| 29 | */ |
||
| 30 | public static function arrayCantBeEmpty() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param int $minimumSize |
||
| 37 | * |
||
| 38 | * @return InvalidArgumentException |
||
| 39 | */ |
||
| 40 | public static function arraySizeToSmall($minimumSize = 2) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return InvalidArgumentException |
||
| 47 | */ |
||
| 48 | public static function matrixDimensionsDidNotMatch() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return InvalidArgumentException |
||
| 55 | */ |
||
| 56 | public static function inconsistentMatrixSupplied() |
||
| 60 | } |
||
| 61 |