Conditions | 6 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function __construct($operation_number, $data) |
||
41 | { |
||
42 | if(!$operation_number){ |
||
43 | throw new RequestIntegrityException("Operation number is not set"); |
||
44 | } |
||
45 | |||
46 | $this->operation_number = $operation_number; |
||
47 | |||
48 | foreach ($data as $key => $value) { |
||
49 | if(!$value || is_numeric($value) && $value <= 0){ |
||
50 | throw new RequestIntegrityException(); |
||
51 | } |
||
52 | $this->$key = $value; |
||
53 | } |
||
72 |