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