public function setItems($items)
    {
        foreach ($this->items as $item) {
            $item->setOrder(null);
        }
        foreach ($items as $item) {
            $item->setOrder($this);
        }
        $this->items = $items;
        return $this;
    }
public function setItems($items)
    {
        foreach ($this->items as $item) {
            $item->setOrder(null);
        }
        foreach ($items as $item) {
            $item->setOrder($this);
        }
        $this->items = $items;
        return $this;
    }
public function setItems ( $ items ) { foreach ( $ this -> items as $ item ) { $ item -> setOrder ( null ) ; } foreach ( $ items as $ item ) { $ item -> setOrder ( $ this ) ; } $ this -> items = $ items ; return $ this ; }
Sets the items.

@param ArrayCollection|OrderItemInterface[] $items
@return Order
Sets the items .