Factory
in package
implements
FactoryInterface
FinalYes
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- Create a new instance.
- create() : DeviceInterface
- Create a new device.
- getLogger() : LoggerInterface
- setLogger() : void
Properties
$cache
private
CacheInterface
$cache
The cache object to use for finding Sonos devices on the network.
$logger
private
LoggerInterface|null
$logger
= null
Methods
__construct()
Create a new instance.
public
__construct([CacheInterface|null $cache = null ][, LoggerInterface|null $logger = null ]) : mixed
Parameters
- $cache : CacheInterface|null = null
-
The cache object to use for finding Sonos devices on the network
- $logger : LoggerInterface|null = null
-
A logging object
create()
Create a new device.
public
create(string $ip) : DeviceInterface
Parameters
- $ip : string
-
The IP address of the device
Return values
DeviceInterfacegetLogger()
public
getLogger() : LoggerInterface
Return values
LoggerInterfacesetLogger()
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface