Dumplie\CustomerService\Domain\PaymentState::pay PHP 메소드

pay() 공개 메소드

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

Usage Example

예제 #1
0
파일: Payment.php 프로젝트: dumplie/dumplie
 /**
  * @throws InvalidTransitionException
  */
 public function pay()
 {
     $this->state = $this->state->pay();
     $this->wasPaidAt = new \DateTimeImmutable();
 }
PaymentState