public static function pickUp(BasketId $basketId) { $basket = new BasketV4($basketId); $basket->recordThat(new BasketWasPickedUp($basketId)); // We moved the code that was on this line, to the `whenBasketWasPickedUp()` method. return $basket; }