Dumplie\Customer\Domain\Order::id PHP Method

id() public method

public id ( ) : OrderId
return OrderId
    public function id() : OrderId
    {
        return $this->id;
    }

Usage Example

Example #1
0
 /**
  * @param Order $order
  */
 public function add(Order $order)
 {
     $this->orders[(string) $order->id()] = $order;
 }