Dumplie\CustomerService\Application\Command\RejectOrder::orderId PHP Method

orderId() public method

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

Usage Example

Exemplo n.º 1
0
 /**
  * @param RejectOrder $command
  * @throws InvalidTransitionException
  */
 public function handle(RejectOrder $command)
 {
     $order = $this->orders->getById(new OrderId($command->orderId()));
     $order->reject();
 }