public function createPlaylist(string $name): PlaylistInterface
    {
        $controller = $this->getController();

        $data = $controller->soap("AVTransport", "CreateSavedQueue", [
            "Title"                 =>  $name,
            "EnqueuedURI"           =>  "",
            "EnqueuedURIMetaData"   =>  "",
        ]);

        $playlist = new Playlist($data["AssignedObjectID"], $controller);

        $this->playlists[] = $playlist;

        return $playlist;
    }
public function createPlaylist(string $name): PlaylistInterface
    {
        $controller = $this->getController();

        $data = $controller->soap("AVTransport", "CreateSavedQueue", [
            "Title"                 =>  $name,
            "EnqueuedURI"           =>  "",
            "EnqueuedURIMetaData"   =>  "",
        ]);

        $playlist = new Playlist($data["AssignedObjectID"], $controller);

        $this->playlists[] = $playlist;

        return $playlist;
    }
public function createPlaylist ( string $ name ) : PlaylistInterface { $ controller = $ this -> getController ( ) ; $ data = $ controller -> soap ( "AVTransport" , "CreateSavedQueue" , [ "Title" => $ name , "EnqueuedURI" => "" , "EnqueuedURIMetaData" => "" , ] ) ; $ playlist = new Playlist ( $ data [ "AssignedObjectID" ] , $ controller ) ; $ this -> playlists [ ] = $ playlist ; return $ playlist ; }
Create a new playlist.

@param string $name The name to give to the playlist

@return PlaylistInterface
Create a new playlist .