Documentation

Device
in package
implements DeviceInterface

FinalYes

Make http requests to a Sonos device.

Table of Contents

Interfaces

DeviceInterface

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

$logger

private LoggerInterface $logger

$lookedUp

private bool $lookedUp = false

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
string

getModel()

public getModel() : string
Return values
string

getName()

public getName() : string
Return values
string

getRoom()

public getRoom() : string
Return values
string

getUuid()

public getUuid() : string
Return values
string

soap()

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
SoapResponse

getXml()

private getXml() : ParserInterface
Return values
ParserInterface

lookupDeviceDescription()

private lookupDeviceDescription() : void
On this page

Search results