Dumplie\CustomerService\Application\Command\SendOrder::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 SendOrder $command
  * @throws InvalidTransitionException
  */
 public function handle(SendOrder $command)
 {
     $order = $this->orders->getById(new OrderId($command->orderId()));
     $order->send();
 }