src/Entity/XiboAudio.php
public function edit($name, $useDuration, $duration, $mute, $loop, $widgetId)
    {
        $this->name = $name;
        $this->useDuration = $useDuration;
        $this->duration = $duration;
        $this->mute = $mute;
        $this->loop = $loop;
        $this->widgetId = $widgetId;

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

        $this->getLogger()->debug('Passing the response to Hydrate');
        return $this->hydrate($response);
    }
public function edit($name, $useDuration, $duration, $mute, $loop, $widgetId)
    {
        $this->name = $name;
        $this->useDuration = $useDuration;
        $this->duration = $duration;
        $this->mute = $mute;
        $this->loop = $loop;
        $this->widgetId = $widgetId;

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

        $this->getLogger()->debug('Passing the response to Hydrate');
        return $this->hydrate($response);
    }
public function edit ( $ name , $ useDuration , $ duration , $ mute , $ loop , $ widgetId ) { $ this -> name = $ name ; $ this -> useDuration = $ useDuration ; $ this -> duration = $ duration ; $ this -> mute = $ mute ; $ this -> loop = $ loop ; $ this -> widgetId = $ widgetId ; $ this -> getLogger ( ) -> info ( 'Editing widget ID ' . $ widgetId ) ; $ response = $ this -> doPut ( '/playlist/widget/' . $ widgetId , $ this -> toArray ( ) ) ; $ this -> getLogger ( ) -> debug ( 'Passing the response to Hydrate' ) ; return $ this -> hydrate ( $ response ) ; }
Edit Audio Widget.

@param string $name Name of the widget
@param int $useDuration Flag (0, 1) Set to 1 if the duration parameter is passed as well
@param int $duration Duration of the widget
@param int $mute Flag (0, 1) Set the widget to mute
@param int $loop Flag (0, 1) Set the widget to loop
@param int $widgetId Id of the widget to edit
@return XiboAudio
Edit Audio Widget .