| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 3 | public function handle(RemoveRoleFromModuleCommand $command) |
|
| 21 | { |
||
| 22 | 3 | $role = $this->roleRepository->read($command->roleId); |
|
| 23 | 3 | $module = $this->moduleRepository->read($command->moduleId); |
|
| 24 | |||
| 25 | 3 | $this->moduleRepository->removeRoleFromModule($role, $module); |
|
| 26 | |||
| 27 | 3 | $module->removeRole($role); |
|
| 28 | 3 | } |
|
| 30 |