pay() public method

public pay ( ) : Dumplie\CustomerService\Domain\PaymentState
return Dumplie\CustomerService\Domain\PaymentState
コード例 #1
0
ファイル: Payment.php プロジェクト: dumplie/dumplie
 /**
  * @throws InvalidTransitionException
  */
 public function pay()
 {
     $this->state = $this->state->pay();
     $this->wasPaidAt = new \DateTimeImmutable();
 }