| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SettingRegistrar implements SettingsRegistrarInterface |
||
| 9 | { |
||
| 10 | public function registerOne(SettingInterface $setting) |
||
| 16 | ); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function registerMany(SettingInterface ...$settings) |
||
| 20 | { |
||
| 21 | foreach ($settings as $setting) { |
||
| 22 | $this->registerOne($setting); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | protected function getSettingArgs(SettingInterface $setting): array |
||
| 39 | } |
||
| 40 | } |
||
| 41 |