Dumplie\CustomerService\Domain\PaymentState::pay PHP Méthode

pay() public méthode

public pay ( ) : Dumplie\CustomerService\Domain\PaymentState
Résultat Dumplie\CustomerService\Domain\PaymentState
    public function pay() : PaymentState;

Usage Example

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