| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.072 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 1 | protected function indexRow($offset, $row) |
|
| 25 | { |
||
| 26 | 1 | if ($row instanceof Transaction) { |
|
| 27 | $id = $row->getInteractionId(); |
||
| 28 | } else { |
||
| 29 | 1 | $id = isset($row[static::INTERACTION_ID]) ? $row[static::INTERACTION_ID] : null; |
|
| 30 | } |
||
| 31 | 1 | $this->addToIndex(static::INTERACTION_ID, $offset, $id); |
|
| 32 | 1 | } |
|
| 43 |