public function getColumns(string $line) : array
    {
        $columns = [];

        $columnStart = 0;
        $lastColumnIndex = count($this->columnWidths) - 1;
        foreach ($this->columnWidths as $i => $columnWidth) {
            $actualWidth = $i === $lastColumnIndex ? strlen($line) : $columnWidth;
            $columns[] = trim(substr($line, $columnStart, $actualWidth));
            $columnStart += $actualWidth;
        }

        return $columns;
    }