| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 75 | 115 | public function __construct($retrievalType, $office, $options) |
|
| 76 | { |
||
| 77 | 115 | $this->type = $retrievalType; |
|
| 78 | 115 | $this->office = $office; |
|
| 79 | |||
| 80 | 115 | foreach ($options as $key => $option) { |
|
| 81 | 10 | if ($key === 0) { |
|
| 82 | 10 | $this->option1 = $option; |
|
| 83 | 7 | } elseif ($key === 1) { |
|
| 84 | 8 | $this->option2 = $option; |
|
| 85 | 2 | } |
|
| 89 |