public function reject() : PaymentState;
/** * @throws InvalidTransitionException */ public function reject() { $this->state = $this->state->reject(); $this->wasRejectedAt = new \DateTimeImmutable(); }