Documentation

Factory
in package
implements FactoryInterface

FinalYes

Table of Contents

Interfaces

FactoryInterface

Properties

$cache  : CacheInterface
$logger  : LoggerInterface|null

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

getLogger()

public getLogger() : LoggerInterface
Return values
LoggerInterface

setLogger()

public setLogger(LoggerInterface $logger) : void
Parameters
$logger : LoggerInterface
On this page

Search results