PHP Класс duncan3dc\Sonos\Tracks\Stream

Наследование: implements duncan3dc\Sonos\Tracks\UriInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$name string The name of the stream.
$uri string The uri of the stream.

Открытые методы

Метод Описание
__construct ( string $uri, $name = "" ) Create a Stream object.
createFromXml ( duncan3dc\DomParser\XmlElement $xml, Controller $controller ) : static Create a stream from an xml element.
getMetaData ( ) : string Get the metadata xml for this stream.
getName ( ) : string Get the name for this stream.
getTitle ( ) : string Get the name for this stream.
getUri ( ) : string Get the URI for this stream.

Описание методов

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

Create a Stream object.
public __construct ( string $uri, $name = "" )
$uri string The URI of the stream

createFromXml() публичный статический Метод

Create a stream from an xml element.
public static createFromXml ( duncan3dc\DomParser\XmlElement $xml, Controller $controller ) : static
$xml duncan3dc\DomParser\XmlElement The xml element representing the track meta data
$controller duncan3dc\Sonos\Controller A controller instance to communicate with
Результат static

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

Get the metadata xml for this stream.
public getMetaData ( ) : string
Результат string

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

Get the name for this stream.
public getName ( ) : string
Результат string

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

Get the name for this stream.
public getTitle ( ) : string
Результат string

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

Get the URI for this stream.
public getUri ( ) : string
Результат string

Описание свойств

$name защищенное свойство

The name of the stream.
protected string $name
Результат string

$uri защищенное свойство

The uri of the stream.
protected string $uri
Результат string