| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 2 | public function __invoke(MoveEvent $wished): void |
|
| 27 | { |
||
| 28 | 2 | if ($this->clock->now()->aheadOf($wished->slot()->start())) { |
|
| 29 | 1 | throw new EventCannotBeDeclaredInThePast($wished->slot()); |
|
| 30 | } |
||
| 31 | |||
| 32 | $this |
||
| 33 | 1 | ->repository |
|
| 34 | 1 | ->get($wished->identity()) |
|
| 35 | 1 | ->move($wished->slot()); |
|
| 36 | 1 | } |
|
| 38 |