Device
in package
implements
DeviceInterface
FinalYes
Make http requests to a Sonos device.
Table of Contents
Interfaces
Properties
- $cache : CacheInterface
- $client : ClientInterface
- $ip : string
- $logger : LoggerInterface
- $lookedUp : bool
- $model : string
- $name : string
- $room : string
- $uuid : string
Methods
- __construct() : mixed
- getIp() : string
- Get the IP address of this device.
- getModel() : string
- getName() : string
- getRoom() : string
- getUuid() : string
- soap() : SoapResponse
- Send a soap request to the device.
- getXml() : ParserInterface
- lookupDeviceDescription() : void
Properties
$cache
private
CacheInterface
$cache
$client
private
ClientInterface
$client
$ip
private
string
$ip
$logger
private
LoggerInterface
$logger
$lookedUp
private
bool
$lookedUp
= false
$model
private
string
$model
$name
private
string
$name
$room
private
string
$room
$uuid
private
string
$uuid
Methods
__construct()
public
__construct(string $ip[, CacheInterface|null $cache = null ][, LoggerInterface|null $logger = null ][, ClientInterface|null $client = null ]) : mixed
Parameters
- $ip : string
- $cache : CacheInterface|null = null
- $logger : LoggerInterface|null = null
- $client : ClientInterface|null = null
getIp()
Get the IP address of this device.
public
getIp() : string
Return values
stringgetModel()
public
getModel() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetRoom()
public
getRoom() : string
Return values
stringgetUuid()
public
getUuid() : string
Return values
stringsoap()
Send a soap request to the device.
public
soap(string $service, string $action[, array<string, string|int|bool> $params = [] ]) : SoapResponse
Parameters
- $service : string
-
The service to send the request to
- $action : string
-
The action to call
- $params : array<string, string|int|bool> = []
-
The parameters to pass
Return values
SoapResponsegetXml()
private
getXml() : ParserInterface
Return values
ParserInterfacelookupDeviceDescription()
private
lookupDeviceDescription() : void