pay() public méthode

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