$id
$id : string
$api : \duncan3dc\Sonos\Cloud\Interfaces\ClientInterface
__construct(string $id, \duncan3dc\Sonos\Cloud\Interfaces\ClientInterface $api, \Psr\SimpleCache\CacheInterface|null $cache = null)
Create a new instance.
string | $id | |
\duncan3dc\Sonos\Cloud\Interfaces\ClientInterface | $api | |
\Psr\SimpleCache\CacheInterface|null | $cache |
getPlayers() : \duncan3dc\Sonos\Cloud\Interfaces\iterable|array<mixed,\duncan3dc\Sonos\Cloud\Interfaces\PlayerInterface>
Get all the speakers on the network.
getPlayersByRoom(\duncan3dc\Sonos\Cloud\string $room) : \duncan3dc\Sonos\Cloud\Interfaces\iterable|array<mixed,\duncan3dc\Sonos\Cloud\Interfaces\PlayerInterface>
Get all the speakers with the specified room name.
\duncan3dc\Sonos\Cloud\string | $room | The name of the room to look for |
getPlayerByRoom(\duncan3dc\Sonos\Cloud\string $room) : \duncan3dc\Sonos\Cloud\Interfaces\PlayerInterface
Get a speaker with the specified room name.
\duncan3dc\Sonos\Cloud\string | $room | The name of the room to look for |