public function editFeed($name, $duration, $useDuration, $updateInterval, $effect, $speed, $copyright = '', $numItems, $takeItemsFrom, $durationIsPerItem, $itemsSideBySide, $itemsPerPage, $dateFormat, $allowedAttributes, $stripTags, $backgroundColor, $disableDateSort, $textDirection, $noDataMessage, $templateId, $overrideTemplate, $template, $css = '', $javaScript = '', $randomiseItems, $widgetId)
    {
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->updateInterval = $updateInterval;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->copyright = $copyright;
        $this->numItems = $numItems;
        $this->takeItemsFrom = $takeItemsFrom;
        $this->durationIsPerItem = $durationIsPerItem;
        $this->itemsSideBySide = $itemsSideBySide;
        $this->itemsPerPage = $itemsPerPage;
        $this->dateFormat = $dateFormat;
        $this->allowedAttributes = $allowedAttributes;
        $this->stripTags = $stripTags;
        $this->backgroundColor = $backgroundColor;
        $this->disableDateSort = $disableDateSort;
        $this->textDirection = $textDirection;
        $this->noDataMessage = $noDataMessage;
        $this->templateId = $templateId;
        $this->overrideTemplate = $overrideTemplate;
        $this->template = $template;
        $this->css = $css;
        $this->javaScript = $javaScript;
        $this->randomiseItems = $randomiseItems;

        $this->getLogger()->info('Editing widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);

    }