| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 31 | public function __invoke(ConfigureSettings $command): void  | 
            ||
| 32 |     { | 
            ||
| 33 |         if ($this->repository->settingsExist()) { | 
            ||
| 34 |             throw new \DomainException('The application is already configured'); | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 | $settings = Settings::create(  | 
            ||
| 38 | SettingsUuid::generate(),  | 
            ||
| 39 | $command->locale(),  | 
            ||
| 40 | $command->currency()  | 
            ||
| 41 | );  | 
            ||
| 42 | |||
| 43 | $this->repository->add($settings);  | 
            ||
| 44 | }  | 
            ||
| 46 |