pay() публичный Метод

public pay ( ) : Dumplie\CustomerService\Domain\PaymentState
Результат Dumplie\CustomerService\Domain\PaymentState
Пример #1
0
 /**
  * @throws InvalidTransitionException
  */
 public function pay()
 {
     $this->state = $this->state->pay();
     $this->wasPaidAt = new \DateTimeImmutable();
 }