CollectionInterface
extends
LoggerAwareInterface
in
Manage a group of devices.
Table of Contents
Methods
- addDevice() : $this
- Add a device to this collection.
- addIp() : $this
- Add a device to this collection using its IP address
- clear() : $this
- Remove all devices from this collection.
- getDevices() : array<string|int, DeviceInterface>
- Get all of the devices in this collection.
- getLogger() : LoggerInterface
- Get the logger currently in use.
Methods
addDevice()
Add a device to this collection.
public
addDevice(DeviceInterface $device) : $this
Parameters
- $device : DeviceInterface
-
The device to add
Return values
$thisaddIp()
Add a device to this collection using its IP address
public
addIp(string $address) : $this
Parameters
- $address : string
-
The IP address of the device to add
Return values
$thisclear()
Remove all devices from this collection.
public
clear() : $this
Return values
$thisgetDevices()
Get all of the devices in this collection.
public
getDevices() : array<string|int, DeviceInterface>
Return values
array<string|int, DeviceInterface>getLogger()
Get the logger currently in use.
public
getLogger() : LoggerInterface