/** * @param OrderInterface $order */ private function completeCheckout(OrderInterface $order) { if ($this->faker->boolean(25)) { $order->setNotes($this->faker->sentence); } $this->applyCheckoutStateTransition($order, OrderCheckoutTransitions::TRANSITION_COMPLETE); }