Documentation

CollectionInterface extends LoggerAwareInterface

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

addIp()

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
$this

clear()

Remove all devices from this collection.

public clear() : $this
Return values
$this

getLogger()

Get the logger currently in use.

public getLogger() : LoggerInterface
Return values
LoggerInterface
On this page

Search results