| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | private function checkCurrencyStatus(CurrencyInterface $currency, $status) |
||
| 47 | { |
||
| 48 | $tableAccessor = $this->getTableAccessor(); |
||
| 49 | $table = $this->getElement('table'); |
||
| 50 | |||
| 51 | $row = $tableAccessor->getRowWithFields($table, ['code' => $currency->getCode()]); |
||
| 52 | $enabledField = $tableAccessor->getFieldFromRow($table, $row, 'Enabled'); |
||
| 53 | |||
| 54 | return $enabledField->getText() === $status; |
||
| 55 | } |
||
| 56 | } |
||
| 57 |