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