Dumplie\CustomerService\Domain\PaymentState::pay PHP Method

pay() public method

public pay ( ) : Dumplie\CustomerService\Domain\PaymentState
return Dumplie\CustomerService\Domain\PaymentState
    public function pay() : PaymentState;

Usage Example

Beispiel #1
0
 /**
  * @throws InvalidTransitionException
  */
 public function pay()
 {
     $this->state = $this->state->pay();
     $this->wasPaidAt = new \DateTimeImmutable();
 }
PaymentState