Dumplie\CustomerService\Application\Command\CreatePayment::orderId PHP Метод

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

public orderId ( ) : string
Результат string
    public function orderId() : string
    {
        return $this->orderId;
    }

Usage Example

Пример #1
0
 /**
  * @param CreatePayment $command
  * @throws OrderNotFoundException
  */
 public function handle(CreatePayment $command)
 {
     $order = $this->orders->getById(new OrderId($command->orderId()));
     $this->payments->add(new Payment(new PaymentId($command->paymentId()), $order));
 }