Entity/BaseOrder.php
public function setTotalPrice($totalPrice)
    {
        $this->totalPrice = $totalPrice;
        if ($this->totalPrice === 0) {
            $this->setShippingCost(0);
        }

        return $this;
    }
public function setTotalPrice($totalPrice)
    {
        $this->totalPrice = $totalPrice;
        if ($this->totalPrice === 0) {
            $this->setShippingCost(0);
        }

        return $this;
    }
Set totalPrice

@param float $totalPrice

@return BaseOrderInterface