duncan3dc\Sonos\Network::getPlaylistById PHP Метод

getPlaylistById() публичный Метод

Get the playlist with the specified id.
public getPlaylistById ( $id ) : duncan3dc\Sonos\Playlist
Результат duncan3dc\Sonos\Playlist
    public function getPlaylistById($id)
    {
        $controller = $this->getController();
        if ($controller === null) {
            throw new \RuntimeException("No controller found on the current network");
        }
        return new Playlist($id, $controller);
    }