| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class MoveLocationResponse implements LocationResponseInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Location The new location to move to. |
||
| 15 | */ |
||
| 16 | private $newLocation; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * MoveLocationResponse constructor. |
||
| 20 | * |
||
| 21 | * @param Location $newLocation The new location to move to. |
||
| 22 | */ |
||
| 23 | 1 | public function __construct(Location $newLocation) |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Performs the location response action by returning the new location. |
||
| 30 | * |
||
| 31 | * @param Location|null $oldLocation The current location. |
||
| 32 | * @return Location The resulting location after the move, will be the new location. |
||
| 33 | */ |
||
| 34 | 1 | public function doLocationResponse(?Location $oldLocation): Location |
|
| 41 |