| Conditions | 3 |
| Paths | 4 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public static function requiredAdapterOptions($adapter, ...$fields) : ConfigurationException { |
||
| 15 | $entries = count($fields) > 1 ? 'entries' : 'entry'; |
||
| 16 | $are = count($fields) > 1 ? 'are' : 'is'; |
||
| 17 | $fields = implode('`, `', $fields); |
||
| 18 | |||
| 19 | return new self("The configuration {$entries} `{$fields}` {$are} required when using the {$adapter} adapter."); |
||
| 20 | } |
||
| 21 | |||
| 23 |