Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function __construct($min, $max) |
||
35 | { |
||
36 | if ( |
||
37 | 2 !== count(array_filter([$min, $max], function ($value) { |
||
38 | return true === is_int($value); |
||
39 | })) |
||
40 | ) { |
||
41 | throw new \InvalidArgumentException( |
||
42 | 'All parameters at Size object must be integers.' |
||
43 | ); |
||
44 | } |
||
45 | |||
46 | $this->min = $min; |
||
47 | $this->max = $max; |
||
48 | } |
||
49 | |||
70 |