$factory
$factory : \duncan3dc\Sonos\Interfaces\Devices\FactoryInterface
$factory : \duncan3dc\Sonos\Interfaces\Devices\FactoryInterface
$devices : array<mixed,\duncan3dc\Sonos\Interfaces\Devices\DeviceInterface>
__construct(\duncan3dc\Sonos\Interfaces\Devices\FactoryInterface $factory)
Create a new instance.
\duncan3dc\Sonos\Interfaces\Devices\FactoryInterface | $factory | The factory to create new devices from |
addDevice(\duncan3dc\Sonos\Interfaces\Devices\DeviceInterface $device) : $this
Add a device to this collection.
\duncan3dc\Sonos\Interfaces\Devices\DeviceInterface | $device | The device to add |
getDevices() : array<mixed,\duncan3dc\Sonos\Interfaces\Devices\DeviceInterface>
Get all of the devices in this collection.