| @@ 442-447 (lines=6) @@ | ||
| 439 | $this->processor = new WDB2($this); |
|
| 440 | break; |
|
| 441 | case 'WDB5': |
|
| 442 | case 'WDB6': |
|
| 443 | if (!is_array($arguments)) { |
|
| 444 | throw new \Exception("You may only pass an array of string fields when loading a DB2"); |
|
| 445 | } |
|
| 446 | $this->processor = new WDB5($this, $arguments); |
|
| 447 | break; |
|
| 448 | case 'WDC1': |
|
| 449 | if (!is_array($arguments)) { |
|
| 450 | throw new \Exception("You may only pass an array of string fields when loading a DB2"); |
|
| @@ 448-453 (lines=6) @@ | ||
| 445 | } |
|
| 446 | $this->processor = new WDB5($this, $arguments); |
|
| 447 | break; |
|
| 448 | case 'WDC1': |
|
| 449 | if (!is_array($arguments)) { |
|
| 450 | throw new \Exception("You may only pass an array of string fields when loading a DB2"); |
|
| 451 | } |
|
| 452 | $this->processor = new WDC1($this, $arguments); |
|
| 453 | break; |
|
| 454 | default: |
|
| 455 | throw new \Exception("Unknown DB2 format: " . $this->getFormat()); |
|
| 456 | } |
|