Dumplie\CustomerService\Application\Command\RefundOrder::orderId PHP Méthode

orderId() public méthode

public orderId ( ) : string
Résultat string
    public function orderId() : string
    {
        return $this->orderId;
    }

Usage Example

 /**
  * @param RefundOrder $command
  * @throws InvalidTransitionException
  * @throws OrderNotFoundException
  */
 public function handle(RefundOrder $command)
 {
     $order = $this->orders->getById(new OrderId($command->orderId()));
     $order->refund();
 }