Shipment/Model/OpeningHour.php
public function addRanges(string $from, string $to)
    {
        $this->ranges[] = [
            'from' => $from,
            'to'   => $to,
        ];

        return $this;
    }
public function addRanges(string $from, string $to)
    {
        $this->ranges[] = [
            'from' => $from,
            'to'   => $to,
        ];

        return $this;
    }
Sets the ranges.

@param string $from
@param string $to

@return OpeningHour