@@ 38-45 (lines=8) @@ | ||
35 | ||
36 | private function assertTheseAreIntegers($min, $max) |
|
37 | { |
|
38 | if (is_int($min) === false) { |
|
39 | throw new InvalidArgumentException( |
|
40 | sprintf( |
|
41 | 'Expected an integer as $min but instead got: %s', |
|
42 | is_object($min) ? get_class($min) : gettype($min) |
|
43 | ) |
|
44 | ); |
|
45 | } |
|
46 | ||
47 | if (is_int($max) === false) { |
|
48 | throw new InvalidArgumentException( |
|
@@ 47-54 (lines=8) @@ | ||
44 | ); |
|
45 | } |
|
46 | ||
47 | if (is_int($max) === false) { |
|
48 | throw new InvalidArgumentException( |
|
49 | sprintf( |
|
50 | 'Expected an integer as $max but instead got: %s', |
|
51 | is_object($max) ? get_class($max) : gettype($max) |
|
52 | ) |
|
53 | ); |
|
54 | } |
|
55 | } |
|
56 | } |
|
57 |