Свойство | Тип | Описание | |
---|---|---|---|
$ip | string | The IP address of the device. |
Свойство | Тип | Описание | |
---|---|---|---|
$cache | Doctrine\Common\Cache\Cache | The long-lived cache object from the Network instance. | |
$logger | Psr\Log\LoggerInterface | The logging object. | |
$model | string | The model of the device. |
Метод | Описание | |
---|---|---|
__construct ( string $ip, Doctrine\Common\Cache\Cache $cache = null, Psr\Log\LoggerInterface $logger = null ) | Create an instance of the Device class. | |
getModel ( ) : string | Get the model of this device. | |
getXml ( string $url ) : duncan3dc\DomParser\XmlParser | Retrieve some xml from the device. | |
isSpeaker ( ) : boolean | Check if this sonos device is a speaker. | |
soap ( string $service, string $action, array $params = [] ) : mixed | Send a soap request to the device. |
public __construct ( string $ip, Doctrine\Common\Cache\Cache $cache = null, Psr\Log\LoggerInterface $logger = null ) | ||
$ip | string | The ip address that the device is listening on |
$cache | Doctrine\Common\Cache\Cache | The cache object to use for the expensive multicast discover to find Sonos devices on the network |
$logger | Psr\Log\LoggerInterface | A logging object |
protected Cache,Doctrine\Common\Cache $cache | ||
Результат | Doctrine\Common\Cache\Cache |
protected LoggerInterface,Psr\Log $logger | ||
Результат | Psr\Log\LoggerInterface |